authelia/test/helpers/visit-page.ts

8 lines
264 B
TypeScript
Raw Permalink Normal View History

2018-08-09 20:24:02 +00:00
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);
});
}