Package com.atlassian.mywork.pageobjects
Class NotificationsPage
- java.lang.Object
-
- com.atlassian.mywork.pageobjects.AbstractPageObject
-
- com.atlassian.mywork.pageobjects.NotificationsPage
-
- All Implemented Interfaces:
com.atlassian.pageobjects.Page
public class NotificationsPage extends AbstractPageObject implements com.atlassian.pageobjects.Page
-
-
Field Summary
-
Fields inherited from class com.atlassian.mywork.pageobjects.AbstractPageObject
elementFinder, pageBinder, ROOT_URL
-
-
Constructor Summary
Constructors Constructor Description NotificationsPage()NotificationsPage(int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the Notifications dialog by pressing Escape in it.StringgetFocusedTitle()List<NotificationItem>getNotificationItems()StringgetUrl()NotificationDrilldownPagegotoDrilldownViaKeyboard()booleanhasNoNotifications()NotificationsPagemore()voidpressShiftTab()voidpressTab()voidsendKeys(CharSequence... shortcut)Sends the provided shortcut as keys to test keyboard shortcutsbooleanshouldMigrate()TasksPageswitchToTasks()voidwaitDialogClose()voidwaitMoreButtonDisappear()voidwaitUntilReady()-
Methods inherited from class com.atlassian.mywork.pageobjects.AbstractPageObject
waitForTransition
-
-
-
-
Method Detail
-
getUrl
public String getUrl()
- Specified by:
getUrlin interfacecom.atlassian.pageobjects.Page
-
waitUntilReady
public void waitUntilReady()
-
switchToTasks
public TasksPage switchToTasks()
-
shouldMigrate
public boolean shouldMigrate()
-
getNotificationItems
public List<NotificationItem> getNotificationItems()
-
hasNoNotifications
public boolean hasNoNotifications()
-
close
public void close()
Closes the Notifications dialog by pressing Escape in it.
-
more
public NotificationsPage more()
-
getFocusedTitle
public String getFocusedTitle()
-
sendKeys
public void sendKeys(CharSequence... shortcut)
Sends the provided shortcut as keys to test keyboard shortcuts- Parameters:
shortcut- string representing the key(s) to be pressed. eg: 'j'
-
pressTab
public void pressTab()
-
pressShiftTab
public void pressShiftTab()
-
gotoDrilldownViaKeyboard
public NotificationDrilldownPage gotoDrilldownViaKeyboard()
-
waitMoreButtonDisappear
public void waitMoreButtonDisappear()
-
waitDialogClose
public void waitDialogClose()
-
-