Friday, April 22, 2011

Open Script : Wait for page to load

' Load a page
web.window["/web:window[@index='0'"].navigate("http://yahoo.com");

'Wait for the page to complete loading
web.window["/web:window[@index='0'"].waitForPage(null);

'Note :If a Pause by Exception Occurs
with the Reason :
"Timeout(5 seconds occurred waiting for page to load"

Go To View > Open Script Preferences.
In the Tree Navigate to Open Script > Playback > Web Functional

Object Timeout : 5
'Change this value to 10 or time to wait for object to time out

No comments:

Post a Comment