mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
10 lines
316 B
TypeScript
10 lines
316 B
TypeScript
|
import SeleniumWebdriver = require("selenium-webdriver");
|
||
|
|
||
|
export default function(driver: any, fieldName: string, text: string) {
|
||
|
return driver.wait(
|
||
|
SeleniumWebdriver.until.elementLocated(
|
||
|
SeleniumWebdriver.By.name(fieldName)), 5000)
|
||
|
.then(function (el) {
|
||
|
return el.sendKeys(text);
|
||
|
});
|
||
|
};
|