What is an other way of "Wait" statement in QTP
I dont want to use wait("Some number").
Can any one tell this please..........
Answer Posted / tvs ramakrishna chowdary
timeout=0
expval=true
actval=window("Flightreservation").winbutton
("updsteorder").getroproperty("enabled")
while((expval<>actval) & (timout<30))
wait(2)
timeout=timeout+1
actval=window("FR").winbutton("UO").getroproperty("enabled")
wend
if(timeout=30)then
msgbox "update order btn is not enabled in given time frame
hence exiting action")
exitaction
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what is vmodel?advantages and disadvantages of vmodel?
How to use conditional loops in qtp ?
What will be happen if i load object repository at run time, but it has already associated.
How to interact tool & application build in QTP?
Diff b/w Health care domain and Banking Domain?
Explain about datafile/verification of date file when file is not available in local system?
How to change the priorities of the recovery scenario properties?
What are the features of quick test pro(qtp)?
Explain how you can replace string in qtp?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
What is recovery scenario manager? When you go for recovery scenario manager?
Tell some commonly used Excel VBA functions?
Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
Explain how you can find length of array in qtp?