mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
6 lines
247 B
TypeScript
6 lines
247 B
TypeScript
import SeleniumWebdriver, { WebDriver } from "selenium-webdriver";
|
|
|
|
export default async function(driver: WebDriver, url: string, timeout: number = 5000) {
|
|
await driver.get(url)
|
|
await driver.wait(SeleniumWebdriver.until.urlIs(url), timeout);
|
|
} |