Namespace: untilUrlIs

untilUrlIs

untilUrlIs(driver, url, timeopt)

untilUrlIs

Parameters:
Name Type Attributes Description
driver Object

webdriver object of web browser.

url String

url for which we want to wait.

time Number <optional>

time parameter is optional & it represents for how much time user want to wait for "url". After time finish it stops operation & return error.

Example

Examples usage of untilUrlIs

 untilUrlIs(driver, 'https://www.example.com', time).then((webElement) => {
   // if original url is "https://www.example.com".
   // It will wait until url is not exact same.
 }).catch((error) => {
   // handle error
 });