03-20-2012, 07:13 PM
Hi vijay,
sync method: Waits for the browser to complete current navigation.
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.
Wait Property method:wait until the specified object property value=expected value
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