public class GroupedNotificationElementPage extends BaseElement
Modifier and Type | Field and Description |
---|---|
protected static String |
NOTIFICATION_EVENT_SELECTOR |
protected static String |
TEXT_SELECTOR |
Constructor and Description |
---|
GroupedNotificationElementPage(org.openqa.selenium.WebElement rootElement)
Default constructor.
|
Modifier and Type | Method and 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.
|
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
protected static final String NOTIFICATION_EVENT_SELECTOR
protected static final String TEXT_SELECTOR
public GroupedNotificationElementPage(org.openqa.selenium.WebElement rootElement)
rootElement
- The root element of the notification blocks.public void openGroup(int notificationNumber)
notificationNumber
- The notification index.public String getText(int notificationNumber, int groupIndex)
notificationNumber
- The notification group number.groupIndex
- The index of the notification in the group.public String getEmitter(int notificationNumber, int groupIndex)
notificationNumber
- The notification group number.groupIndex
- The index of the notification in the group.protected List<org.openqa.selenium.WebElement> findNotifications()
Copyright © 2004–2021 XWiki. All rights reserved.