5 lines
203 B
TypeScript
5 lines
203 B
TypeScript
|
import SeleniumWebdriver = require("selenium-webdriver");
|
||
|
|
||
|
export default function(driver: any, url: string, timeout: number = 5000) {
|
||
|
return driver.wait(SeleniumWebdriver.until.urlIs(url), timeout);
|
||
|
}
|