Micro Focus QTP (UFT) Forums
Descriptive program dynamic action - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Descriptive program dynamic action (/Thread-Descriptive-program-dynamic-action)



Descriptive program dynamic action - Raj - 09-17-2008

Hi All,

In QTP descriptive programming language, i have to assign dynamic action at runtime.

Ex:=
Code:
[b]Action[/b]="Click";
Browser("Logon").Page("Logon").JavaApplet("LogonApplet").JavaButton("Logon").[b]Action[/b]

i need to assign the dynamic action like "Click" or "DBClick" at runtime

Thanks in advance,
Natarajan


RE: Descriptive program dynamic action - Ankur - 09-29-2008

seems you are looking for RegisterUserFunc

to assign at run time use conditional statements.


RE: Descriptive program dynamic action - Raj - 09-29-2008

Thanks Ankur, i'll take a look on this