Class AbstractNotificationPreferences

    • Constructor Detail

      • AbstractNotificationPreferences

        public AbstractNotificationPreferences​(org.openqa.selenium.WebElement webElement,
                                               XWikiWebDriver driver)
        Construct an AbstractNotificationPreferences.
        Parameters:
        webElement - table body of the application
        driver - the web driver
    • Method Detail

      • setAlertState

        public void setAlertState​(BootstrapSwitch.State state)
                           throws Exception
        Set the state of the alert switch.
        Parameters:
        state - expected state
        Throws:
        Exception - if the state is not valid
      • setEmailState

        public void setEmailState​(BootstrapSwitch.State state)
                           throws Exception
        Set the state of the email switch.
        Parameters:
        state - expected state
        Throws:
        Exception - if the state is not valid
      • getSwitch

        protected abstract BootstrapSwitch getSwitch​(String format)
        Parameters:
        format - the format of the notification
        Returns:
        the switch associated to the given format