Class RenderedPageObjectView


  • public class RenderedPageObjectView
    extends Object
    A page view that handles checking and waiting for element visibility.
    • Constructor Detail

      • RenderedPageObjectView

        public RenderedPageObjectView​(org.openqa.selenium.WebDriver driver,
                                      PageObject pageObject,
                                      long waitForTimeoutInMilliseconds)
      • RenderedPageObjectView

        public RenderedPageObjectView​(org.openqa.selenium.WebDriver driver,
                                      PageObject pageObject,
                                      Duration waitForTimeout,
                                      boolean timeoutCanBeOverriden)
    • Method Detail

      • doWait

        public org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> doWait()
      • waitFor

        public void waitFor​(org.openqa.selenium.By byElementCriteria)
        This method will wait until an element is present and visible on the screen.
      • waitFor

        public void waitFor​(org.openqa.selenium.support.ui.ExpectedCondition expectedCondition)
      • waitFor

        public void waitFor​(String message,
                            org.openqa.selenium.support.ui.ExpectedCondition<org.openqa.selenium.WebDriver> expectedCondition)
      • waitFor

        public void waitFor​(String xpathOrCssSelector)
      • waitFor

        public WebElementFacade waitFor​(org.openqa.selenium.WebElement webElement)
      • waitForPresenceOf

        public void waitForPresenceOf​(org.openqa.selenium.By byElementCriteria)
        This method will wait until an element is present on the screen, though not necessarily visible.
      • elementIsPresent

        public boolean elementIsPresent​(org.openqa.selenium.By byElementCriteria)
      • elementIsDisplayed

        public boolean elementIsDisplayed​(org.openqa.selenium.By byElementCriteria)
      • elementIsCurrentlyVisible

        public boolean elementIsCurrentlyVisible​(org.openqa.selenium.By byElementCriteria)
      • waitForText

        public void waitForText​(String expectedText)
      • thenWait

        public org.openqa.selenium.support.ui.WebDriverWait thenWait()
      • waitForText

        public void waitForText​(org.openqa.selenium.WebElement element,
                                String expectedText)
      • waitForTitle

        public void waitForTitle​(String expectedTitle)
      • containsText

        public boolean containsText​(String textValue)
      • containsText

        public boolean containsText​(org.openqa.selenium.WebElement element,
                                    String textValue)
      • waitForTextToDisappear

        public void waitForTextToDisappear​(String expectedText,
                                           long timeout)
      • waitForTextToAppear

        public void waitForTextToAppear​(String expectedText,
                                        long timeout)
      • waitForTitleToDisappear

        public void waitForTitleToDisappear​(String expectedTitle)
      • waitForAnyTextToAppear

        public void waitForAnyTextToAppear​(String... expectedTexts)
      • waitForAnyTextToAppear

        public void waitForAnyTextToAppear​(org.openqa.selenium.WebElement element,
                                           String... expectedTexts)
      • waitForAbsenceOf

        public void waitForAbsenceOf​(String xpathOrCssSelector)
      • waitForAllTextToAppear

        public void waitForAllTextToAppear​(String... expectedTexts)
      • waitForElementsToDisappear

        public void waitForElementsToDisappear​(org.openqa.selenium.By byElementCriteria)
      • waitForAnyRenderedElementOf

        public void waitForAnyRenderedElementOf​(org.openqa.selenium.By[] expectedElements)
      • setWaitForTimeout

        public void setWaitForTimeout​(Duration waitForTimeout)
      • getWaitForTimeout

        public Duration getWaitForTimeout()
      • findAllWithNoWait

        public List<WebElementFacade> findAllWithNoWait​(org.openqa.selenium.By bySelector)
      • waitForElementForUpTo

        public WebElementFacadeWait waitForElementForUpTo​(long timeoutInSeconds)