An NDoc Documented Class Library |

# ISelenium.WaitForPageToLoad Method

Waits for a new page to load.

You can use this command instead of the "AndWait" suffixes, "clickAndWait", "selectAndWait", "typeAndWait" etc. (which are only available in the JS API).

Selenium constantly keeps track of new pages loading, and sets a "newPageLoaded" flag when it first notices a page load. Running any other Selenium command after turns the flag to false. Hence, if you want to wait for a page to load, you must wait immediately after a Selenium command that caused a page-load.

void WaitForPageToLoad(
string timeout
);

#### Parameters

timeout
  a timeout in milliseconds, after which this command will return with an error

#### See Also

ISelenium Interface | Selenium Namespace