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
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 |
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 |
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 |
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 |
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 |
Answer / kajal
object.WaitProperty "Property Name","Property
Value",10000
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / kumar
obj hierarchy.wait proprerty"property name",property value,extra time in milli seconds
Is This Answer Correct ? | 0 Yes | 0 No |
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 |
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 |
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 |
in qtp wha t is synchronisatin pt,what is the maximam time out
As u told write Libarary files in QTP. Do u use ever oject repositary 0r spy while writing scripts and for which type of testing u prepared test scripts.
How to create an Action Template?
i have an array CAPGEMINI .....Here i need to check whether G is there or not ..how to do that and friends i have one big doubt that is whether it is array or string ,how we come to know that and where we consider that it's array ,where we consider that it's an string because when i want to find the length i have big doubt whether we need to use len function or ubound ... ans me for this TWO Questions any one please
How should I check my code( Before going to execute) without executing the script in QTP
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
Hi, actually I completed Btech(CS). But i Will go to admin (Facility) interview. So, If Interviewer asking like " Why You choose this field". What we say? pLZ PLZ PLZ PLZ >............................................Send me.....
i ve an excel in a QC folder. Thru my QTP script i want to open that excel in runtime. I am running this script from QC itself
how i can delete the excel process for the task manager using QTP
I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
Wher to use DATA TABLE METHODS in Qtp?What is the use of it?