Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is vmodel?advantages and disadvantages of vmodel?

2240


How to use conditional loops in qtp ?

1102


What will be happen if i load object repository at run time, but it has already associated.

1846


How to interact tool & application build in QTP?

2000


Diff b/w Health care domain and Banking Domain?

4738


Explain about datafile/verification of date file when file is not available in local system?

2784


How to change the priorities of the recovery scenario properties?

1230


What are the features of quick test pro(qtp)?

1052


Explain how you can replace string in qtp?

1127


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

2108


What is recovery scenario manager? When you go for recovery scenario manager?

1089


Tell some commonly used Excel VBA functions?

1101


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

1977


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?

4705


Explain how you can find length of array in qtp?

1103