mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
12 lines
459 B
TypeScript
12 lines
459 B
TypeScript
|
import SeleniumWebDriver, { WebDriver } from "selenium-webdriver";
|
||
|
import VerifyElementDoesNotExist from "./VerifyElementDoesNotExist";
|
||
|
|
||
|
/**
|
||
|
* Verify that an element does not exist.
|
||
|
*
|
||
|
* @param driver The selenium driver
|
||
|
* @param content The content of the button to select.
|
||
|
*/
|
||
|
export default async function(driver: WebDriver, content: string) {
|
||
|
await VerifyElementDoesNotExist(driver, SeleniumWebDriver.By.xpath("//button[text()='" + content + "']"))
|
||
|
}
|