mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
8 lines
264 B
TypeScript
Executable File
8 lines
264 B
TypeScript
Executable File
import SeleniumWebdriver = require("selenium-webdriver");
|
|
|
|
export default function(driver: any, url: string, timeout: number = 5000) {
|
|
return driver.get(url)
|
|
.then(function () {
|
|
return driver.wait(SeleniumWebdriver.until.urlIs(url), timeout);
|
|
});
|
|
} |