StopLoading Method

Window

StopLoading is declared for the browser window.

Action

Stops the browser from loading the current page.

Availability

This functionality is supported only if you are using the Classic Agent. For additional information, refer to the Silk Test Classic Classic Agent Help.

Syntax

browser.StopLoading ( )

Notes

The method works by clicking the Stop button on the toolbar. The method will fail if the tool bar is not displayed.

If you start a search and then use the StopLoading method it may appear as if the StopLoading method is not working as it should. This is because the browser runs in a separate process from the search process and the search results can return faster than the mouse click occurs.

Example

Browser.StopLoading ()