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

Which features or drawbacks of QTP lead to the upgrade for a newer version?

764


Key word driven framework

1914


How the exception handling can be done using quicktest professional (qtp)?

759


What is object spy in quicktest professional?

817


Can you write a script to check if the folder exists or not?

727


If you are testing a web application then what will you test in that application?

1782


What is test object model in quicktest professional?

822


There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

1824


With what extension you can save the list of tests in a file to run in test batch runner?

770


How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?

918


your coming from electrical backgroung..but y ur coming to software side?

1570


What is quick test pro?

830


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

891


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1896


How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))

1870