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


Please Help Members By Posting Answers For Below Questions

can the activities of test case design be automated?

1454


Does quicktest professional (qtp) is unicode compatible?

538


What is optional step in qtp? How you can add optional step in qtp?

534


What is qtpro? What is quick test pro?

564


Key word driven framework

1684






Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4144


What are private functions in QTP? How they can be called from the function library?

636


how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?

1422


What is throw object?

1746


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

3773


What is the XML file architecture ?

1553


What are the Test design techniques you uses in ur project?

1487


What are the advantages of parameterization ?

596


How many types of status are there?

589


Differentiate the type of test cases which can be automated and which cannot be automated?

567