mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
a717b965c1
For instance Duo Push Notification method is not displayed if the API is not configured.
11 lines
471 B
TypeScript
11 lines
471 B
TypeScript
import SeleniumWebDriver, { WebDriver } from "selenium-webdriver";
|
|
import VerifyElementExists from "./VerifyElementExists";
|
|
|
|
/**
|
|
* Verify if a button with given content exists in the DOM.
|
|
* @param driver The selenium web driver.
|
|
* @param content The content of the button to find in the DOM.
|
|
*/
|
|
export default async function(driver: WebDriver, content: string) {
|
|
await VerifyElementExists(driver, SeleniumWebDriver.By.xpath("//button[text()='" + content + "']"));
|
|
} |