Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative for Wait Statement
#3
Solved: 10 Years, 9 Months, 1 Week ago
Hi vijay,

sync method: Waits for the browser to complete current navigation.

Code:
'Wait till Gmail browser launches
Browser("title:=Gmail: Email from Google").Sync

Exist statement:We can enter Exist statements to instruct QuickTest to wait for a window to open or an object to appear. Exist statements return a boolean value indicating whether or not an object currently exists.

Code:
'Wait till Gmail browser exists
Do while  
Browser("title:=Gmail: Email from Google").Exist(1) = False  
Wait 1
Loop

Wait Property method:wait until the specified object property value=expected value
Code:
Browser("Yahoo! Mail: The best").Page("Yahoo! Mail: The best").WebEdit("login").WaitProperty "Value", "Inbox", 3000
Reply


Messages In This Thread
Alternative for Wait Statement - by Veekay - 03-20-2012, 05:57 PM
RE: Alternative for Wait Statement - by swathi - 03-20-2012, 07:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help with wait property function kp_usa 3 3,986 12-20-2012, 10:49 PM
Last Post: kp_usa
  wait QAVA 1 2,783 11-13-2012, 07:29 PM
Last Post: imzeeshan
  How to control WAIT time with STATIC variable? chong67 3 3,817 06-22-2012, 10:38 AM
Last Post: sshukla12
  Verifying the value exists and if not, wait up to 5min HeZma 3 3,842 02-25-2012, 12:21 PM
Last Post: rajpes
  How to Handle Browser page wait In Firefox QTP V11. UFTEnthusiast 0 3,468 05-30-2011, 05:25 PM
Last Post: UFTEnthusiast

Forum Jump:


Users browsing this thread: 1 Guest(s)