|This method is obsolete. See the Remarks section below.|
NavigateTo method is only added to
window objects that correspond to WebBrowser controls. It lets you open the specified page in a WebBrowser control.
NavigateTo method performs the same actions as the
NavigateTo method of the
Page object that corresponds to the tested web page. However, it lets you navigate to web pages without having to obtain the
Page object that provides access to web pages.
ToUrl method of the window object,
NavigateTo waits until the specified page is loaded. However, unlike
ToURL, it does not return any value. So, after you call
NavigateTo, you will have to obtain the
Page object that corresponds to the loaded page. For more information on this, see Navigate to Web Pages.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
|WaitTime||[in]||Optional||Integer||Default value: -1|
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:
The URL of the page to be opened in the browser.
If the tested web page is located on your computer, then to make your script computer-independent, use the server name rather than localhost when specifying the page’s URL, that is, for instance, use the URL http://mycomp/path/mypage.htm rather than http://localhost/path/mypage.htm. See Computer-Specific Settings for more information about this.
Specifies the time (in milliseconds) to wait until the browser loads the page and becomes ready to accept user input. If WaitTime is omitted, the timeout is specified by the project's Web page loading timeout option. After the specified time limit is reached, the test execution proceeds.
This method is obsolete. To open the specified page in a WebBrowser control, use the
If the method navigates to a web page successfully, it posts an event message to the test log.
If the method cannot navigate to a web page, it fails and posts an error message to the test log.
NavigateTomethod is only added to
windowobjects that correspond to WebBrowser controls. This method is an analogue of the
Page.NavigateTomethod. However, it lets you load web pages in a browser without having to obtain the
Pageobject that provides access to web pages.
NatigateToautomatically sets the zoom ratio of the destination page to 100%.
NavigateTomethod is similar to the
ToURLmethod. The difference is that
Pageobject that corresponds to the loaded page, whereas
NavigateTodoes not return any value.
To view an example that demonstrates how to use the
NavigateTo method, see Navigate to Web Pages.