untilUrlContains(driver, url, timeopt)
untilUrlContains
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 untilUrlContains
untilUrlContains(driver, 'example.com', time).then((webElement) => {
// if original url is "https://www.example.com" & url for wait is "example.com".
// It will wait until url doesn't contains "example.com".
}).catch((error) => {
// handle error
});