Class EventTypePreferences
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.platform.notifications.test.po.preferences.AbstractNotificationPreferences
-
- org.xwiki.platform.notifications.test.po.preferences.EventTypePreferences
-
public class EventTypePreferences extends AbstractNotificationPreferences
Wrap the notification preferences of a given event type.- Since:
- 9.7RC1
- Version:
- $Id: 189352882a820001e28105ecc96bc4cdce36f8f6 $
-
-
Field Summary
-
Fields inherited from class org.xwiki.platform.notifications.test.po.preferences.AbstractNotificationPreferences
alertSwitch, driver, emailSwitch, webElement
-
-
Constructor Summary
Constructors Constructor Description EventTypePreferences(org.openqa.selenium.WebElement webElement, XWikiWebDriver driver)
Construct an EventTypePreferences.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEventType()
String
getEventTypeDescription()
protected BootstrapSwitch
getSwitch(String format)
-
Methods inherited from class org.xwiki.platform.notifications.test.po.preferences.AbstractNotificationPreferences
getAlertState, getEmailState, setAlertState, setEmailState
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Constructor Detail
-
EventTypePreferences
public EventTypePreferences(org.openqa.selenium.WebElement webElement, XWikiWebDriver driver)
Construct an EventTypePreferences.- Parameters:
webElement
- table row of the event typedriver
- the xwiki web driver
-
-
Method Detail
-
getEventType
public String getEventType()
- Returns:
- the id of the event type
-
getEventTypeDescription
public String getEventTypeDescription() throws Exception
- Returns:
- the description of the event type
- Throws:
Exception
- if the event type is not displayed
-
getSwitch
protected BootstrapSwitch getSwitch(String format)
- Specified by:
getSwitch
in classAbstractNotificationPreferences
- Parameters:
format
- the format of the notification- Returns:
- the switch associated to the given format
-
-