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..........

Answers were Sorted based on User's Feedback



What is an other way of "Wait" statement in QTP I dont want to use wait("Some number..

Answer / hemakumar..m

Use Exist Method.

Ex:
Browser("title:=.*").Page("title:=.*").Link
("name:=OK").Exist(2)

It will wait upto specified time(2sec) when object does not
exist.

Is This Answer Correct ?    9 Yes 3 No

What is an other way of "Wait" statement in QTP I dont want to use wait("Some number..

Answer / deepak

You can also use Do Until

E.g- There is a particular button in the next page which is
about to come then you can write like this:

Do Until Browser("...").Page("...").WebButton("...").Exist
Wait(1)
Loop

Is This Answer Correct ?    6 Yes 2 No

What is an other way of "Wait" statement in QTP I dont want to use wait("Some number..

Answer / jitendra

It depends upon why you have used wait() in ur code.
Probably you can use the Sync() method.

This method will wait, till the client gets a response from
server or the Object Synchronization time is not crossed.

Browser().Page().Button().Click
Browser().Page().Sync

Is This Answer Correct ?    4 Yes 0 No

What is an other way of "Wait" statement in QTP I dont want to use wait("Some number..

Answer / king

Increase the defult time... the default time is 20 seconds
u can increase how much u want..

Is This Answer Correct ?    4 Yes 2 No

What is an other way of "Wait" statement in QTP I dont want to use wait("Some number..

Answer / prashanth

I use a windows application where except wait function and
wait property i have no other options.
Then how to proceed, as wait function is not a right way of
coding as I know and wait property cannot be used in case
as no object is going to change exceot the window gets
refreshed when RETURN key is clicked.

Is This Answer Correct ?    1 Yes 0 No

What is an other way of "Wait" statement in QTP I dont want to use wait("Some number..

Answer / kajal

object.WaitProperty "Property Name","Property
Value",10000

Is This Answer Correct ?    2 Yes 1 No

What is an other way of "Wait" statement in QTP I dont want to use wait("Some number..

Answer / kumar

obj hierarchy.wait proprerty"property name",property value,extra time in milli seconds

Is This Answer Correct ?    0 Yes 0 No

What is an other way of "Wait" statement in QTP I dont want to use wait("Some number..

Answer / suvrat sharma

Service.ThinkTime(5)

It's same as Wait(5) and will pause your execution of
script for 5 sec.

Thanks!

Is This Answer Correct ?    0 Yes 0 No

What is an other way of "Wait" statement in QTP I dont want to use wait("Some number..

Answer / litan

Excluding Wait 2 other methods are there.
1.Browser("micclass:=Browser").page("micclass:=Page").Sync
2.Wait Property
Ex:Browser("micclass:=Browser").Page("micclass:=Page").Image
("name:=Pic).WaitProperty "Property Name","Property
Value",30000
It will wait till in next page That Property Match

Is This Answer Correct ?    1 Yes 2 No

What is an other way of "Wait" statement in QTP I dont want to use wait("Some number..

Answer / 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

More QTP Interview Questions

Hello Everybody, Please tell me can we create Test Plan in QTP? This I am asking irrespective to integrating with Test Director.I mean is there any option to create Test Plan in QTP itself. Thanks, Gaytri

4 Answers  


What are objects? how do you select the unknow object?

3 Answers  


How To write script in QTP For Field Validation Example: password Field is accepting A range 8-20 characters only.How to write script?

3 Answers  


Where we can use the synchronization?

0 Answers  


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

0 Answers  


How to create scenario selector

0 Answers  


I have a drop down box to show selected number of records in result page.It contains 4 items like 10, 25,50 and 100. when i was recordes script for seelcting each item and checking selecting number of records in the result page( it is in the same page in the table format)it is generating a new page with same controls( objects) in the OR. how to avaid these in OR? is it possible to write DP for only these lines?, remaining(remaingin lines of code) objects i want use from OR only. One more problemis if change ( add /remove properties of an OBJECT in OR , my ( recorded )application is not running.

5 Answers   Virtusa,


What is the differences between image check point and bit map check point?

0 Answers  


When to use Descriptive programing?

2 Answers   Wipro,


How to Import data from a ".xls" file to Data table during Runtime.

1 Answers   Crea,


How to Display last item of a Combobox by using QTP?

10 Answers  


QTP script is not working on other's machine..

0 Answers  


Categories