Class BaseModal

    • Field Detail

      • container

        protected org.openqa.selenium.WebElement container
    • Constructor Detail

      • BaseModal

        public BaseModal​(org.openqa.selenium.By selector)
    • Method Detail

      • getTitle

        public String getTitle()
      • isDisplayed

        public boolean isDisplayed()
      • close

        public void close()
      • waitForClosed

        protected BaseModal waitForClosed()
        The modal may have a fade out effect on close which means it may not disappear instantly. It's safer to wait for the modal to disappear when closed, before proceeding with next actions.
        Returns:
        this model