Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative for wait statement.
#3
Solved: 11 Years, 3 Months, 1 Week ago
Hi ,

Use "WaitProperty" method.

Refer the below example:
The following example uses the 'WaitProperty' method to wait for the required WebButton's 'readyState' property to be complete or for 10 seconds (10000 milliseconds) to pass, whichever comes first.
If the WebButton achieves this value for '4' seconds itself, then QTP clicks the button & ignores the remaining '6' seconds.

Example:
Code:
If Browser("....").Page("....").WebButton("....").WaitProperty("readyState", "Complete", 10000) Then
    Browser("....").Page("....").WebButton("....").Click
End If
Reply


Messages In This Thread
Alternative for wait statement. - by adpbinu - 01-30-2010, 12:53 AM
RE: Alternative for wait statement. - by sreekanth chilam - 01-30-2010, 09:17 PM
RE: Alternative for wait statement. - by adpbinu - 02-05-2010, 01:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help with wait property function kp_usa 3 4,250 12-20-2012, 10:49 PM
Last Post: kp_usa
  wait QAVA 1 2,983 11-13-2012, 07:29 PM
Last Post: imzeeshan
  How to control WAIT time with STATIC variable? chong67 3 3,956 06-22-2012, 10:38 AM
Last Post: sshukla12
Exclamation Alternative for Wait Statement Veekay 2 8,528 03-20-2012, 07:13 PM
Last Post: swathi
  Verifying the value exists and if not, wait up to 5min HeZma 3 4,029 02-25-2012, 12:21 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)