mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
9 lines
319 B
TypeScript
9 lines
319 B
TypeScript
|
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);
|
||
|
};
|