I've some problem in Descriptive programming plz help me.
I've written in a click event code in Functional library
when I run this flight reservation program It is not run.
How to I write multiple click event in functional library.
My program is this. I have associate an action with
functional library.
Public Function ClickButton(byval ApplicationName, byval
WindowName, byval ObjectName, byref Comments) If
Dialog("text:=" &WindowName).WinButton("text:="
&ObjectName).Exist Then
Dialog("text:=" &WindowName).Activate
Dialog("text:=" &WindowName).WinButton("text:="
&ObjectName).Click
Elseif Window("text:="&ApplicationName).WinButton("text:="
&ObjectName).Exist Then
Window("text:=" &ApplicationName).Activate
Window("text:=" &ApplicationName).WinButton("text:="
&ObjectName).Click
End if
End Function
Answer Posted / nn
syntax error?- 2 if's used an 1 end if
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to execute a winrunner script in quicktest professional (qtp)?
In qtp, how you can remove the spaces from string?
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
How can you exit from an action?
in a web page How to check and display a particular word from a paragraph?
Discuss quicktest professional (qtp) environment?
Can we create user defined functions in qtp?
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
what is object and child object.. explain ..if possible give some example for better understanding ..
Why do we use breakpoints in QTP?
What is method name to compare two XML files.
If I change the object name in one action will it be updated in all the actions? Or not?
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
What is throw object?
How many types of status are there?