public abstract class AbstractNotificationPreferences extends BaseElement
Modifier and Type | Field and Description |
---|---|
protected BootstrapSwitch |
alertSwitch |
protected XWikiWebDriver |
driver |
protected BootstrapSwitch |
emailSwitch |
protected org.openqa.selenium.WebElement |
webElement |
Constructor and Description |
---|
AbstractNotificationPreferences(org.openqa.selenium.WebElement webElement,
XWikiWebDriver driver)
Construct an AbstractNotificationPreferences.
|
Modifier and Type | Method and Description |
---|---|
BootstrapSwitch.State |
getAlertState() |
BootstrapSwitch.State |
getEmailState() |
protected abstract BootstrapSwitch |
getSwitch(String format) |
void |
setAlertState(BootstrapSwitch.State state)
Set the state of the alert switch.
|
void |
setEmailState(BootstrapSwitch.State state)
Set the state of the email switch.
|
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
protected org.openqa.selenium.WebElement webElement
protected XWikiWebDriver driver
protected BootstrapSwitch alertSwitch
protected BootstrapSwitch emailSwitch
public AbstractNotificationPreferences(org.openqa.selenium.WebElement webElement, XWikiWebDriver driver)
webElement
- table body of the applicationdriver
- the web driverpublic BootstrapSwitch.State getAlertState()
public BootstrapSwitch.State getEmailState()
public void setAlertState(BootstrapSwitch.State state) throws Exception
state
- expected stateException
- if the state is not validpublic void setEmailState(BootstrapSwitch.State state) throws Exception
state
- expected stateException
- if the state is not validprotected abstract BootstrapSwitch getSwitch(String format)
format
- the format of the notificationCopyright © 2004–2021 XWiki. All rights reserved.