Class GroupedNotificationElementPage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.platform.notifications.test.po.GroupedNotificationElementPage
-
public class GroupedNotificationElementPage extends BaseElement
Represent generic operations on the notification tray groups.- Since:
- 12.8RC1
- Version:
- $Id: a247c2143e8d446ce9243d17fec870e864ae8195 $
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
NOTIFICATION_EVENT_SELECTOR
protected static String
TEXT_SELECTOR
-
Constructor Summary
Constructors Constructor Description GroupedNotificationElementPage(org.openqa.selenium.WebElement rootElement)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<org.openqa.selenium.WebElement>
findNotifications()
String
getEmitter(int notificationNumber, int groupIndex)
String
getText(int notificationNumber, int groupIndex)
Finds the text of a notification.void
openGroup(int notificationNumber)
Opens a notification group.-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Field Detail
-
NOTIFICATION_EVENT_SELECTOR
protected static final String NOTIFICATION_EVENT_SELECTOR
- See Also:
- Constant Field Values
-
TEXT_SELECTOR
protected static final String TEXT_SELECTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
openGroup
public void openGroup(int notificationNumber)
Opens a notification group.- Parameters:
notificationNumber
- The notification index.
-
getText
public String getText(int notificationNumber, int groupIndex)
Finds the text of a notification.- Parameters:
notificationNumber
- The notification group number.groupIndex
- The index of the notification in the group.- Returns:
- The mention text.
-
getEmitter
public String getEmitter(int notificationNumber, int groupIndex)
- Parameters:
notificationNumber
- The notification group number.groupIndex
- The index of the notification in the group.- Returns:
- The mention emitter.
-
findNotifications
protected List<org.openqa.selenium.WebElement> findNotifications()
-
-