authelia/test/helpers/FillField.ts

9 lines
319 B
TypeScript
Raw Normal View History

import SeleniumWebdriver, { WebDriver } from "selenium-webdriver";
export default async function(driver: WebDriver, fieldName: string, text: string) {
const element = await driver.wait(
SeleniumWebdriver.until.elementLocated(
SeleniumWebdriver.By.name(fieldName)), 5000)
await element.sendKeys(text);
};