Class NotificationPage

    • Constructor Detail

      • NotificationPage

        public NotificationPage​(org.openqa.selenium.WebDriver driver)
    • Method Detail

      • isNativeNotificationPage

        public boolean isNativeNotificationPage()
        isNativeNotificationPage
        Returns:
        boolean
      • isClearAllBtnLoaded

        public boolean isClearAllBtnLoaded()
        isClearAllBtnLoaded
        Returns:
        boolean
      • getLastItemsContentSize

        public int getLastItemsContentSize()
        getLastItemsContentSize
        Returns:
        int
      • getItemTitle

        public java.lang.String getItemTitle​(int num)
        getItemTitle
        Parameters:
        num - notification number
        Returns:
        String
      • getItemText

        public java.lang.String getItemText​(int num)
        getItemText
        Parameters:
        num - notification number
        Returns:
        String
      • tapClearAllBtn

        public void tapClearAllBtn()
      • clearNotifications

        public void clearNotifications()
        clearNotifications
      • cleanNotificationByService

        public void cleanNotificationByService()
        cleanNotificationByService
      • getAllAvailableNotifications

        public java.util.List<com.zebrunner.carina.utils.mobile.notifications.android.Notification> getAllAvailableNotifications()
        getAllAvailableNotifications
        Returns:
        List of Notification
      • collapseStatusBar

        public void collapseStatusBar()
        collapseStatusBar
      • isStatusBarExpanded

        public boolean isStatusBarExpanded()
        isStatusBarExpanded
        Returns:
        boolean
      • clickAlert

        public void clickAlert​(java.lang.String alertText)
      • isOpened

        public boolean isOpened​(long timeout)
        isOpened
        Parameters:
        timeout - long
        Returns:
        boolean
      • isOpened

        public boolean isOpened()
        Specified by:
        isOpened in class MobileAbstractPage
        Returns:
        true by default. Override it in child classes