WaitPage method is only added to those
window objects that correspond to WebBrowser controls. Use this method to pause the script execution until a
Page object with the specified URL appears in the object hierarchy or until the specified timeout elapses.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The method is applied to the following object:
To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
The method has the following parameters:
Specifies the URL of the web page being loaded. You can use wildcard characters (* and ?) or regular expressions in the ”regexp:pattern“ format to indicate the dynamic parts of the URL, such as values of the query string variables:
The asterisk (*) corresponds to a string of any length, the question mark (?) corresponds to any single character.To specify more complicated parts of a URL, use regular expressions:
The number of milliseconds to wait until the
Page object that corresponds to the web page appears in the object tree. If Timeout is 0, the method returns immediately. If Timeout is -1, the wait time is infinite.
Page object that provides scripting interface to the loaded web page and its child elements.
WaitPagemethod is added only to
windowobjects corresponding to WebBrowser controls.
WaitPagemethod waits for the corresponding
Pageobject to become available. It does not wait for the page content to be fully downloaded. See Wait For Web Pages for information on specifics of loading web pages and for code samples.
Classic Web Testing
Page Method (Window Objects)
Wait For Web Pages