Class RenderedPageObjectView

java.lang.Object
net.serenitybdd.core.pages.RenderedPageObjectView

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

    • 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 Details

    • waitForCondition

      public ThucydidesFluentWait<org.openqa.selenium.WebDriver> waitForCondition()
    • doWait

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

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

      public <T> T waitFor(org.openqa.selenium.support.ui.ExpectedCondition<T> expectedCondition)
    • waitFor

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

      public WebElementFacade waitFor(String xpathOrCssSelector)
    • waitFor

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

      public WebElementFacade waitFor(WebElementFacade webElement)
    • waitFor

      public List<WebElementFacade> waitFor(List<WebElementFacade> webElements)
    • waitForPresenceOf

      public org.openqa.selenium.WebElement 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()
    • findAllWithOptionalWait

      protected List<WebElementFacade> findAllWithOptionalWait(org.openqa.selenium.By bySelector, FindAllWaitOptions waitForOptions)
    • findAll

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

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

      public List<WebElementFacade> findAll(String xpathOrCssSelector)
    • findFirstMatching

      public List<WebElementFacade> findFirstMatching(List<String> xpathOrCssSelectors)
    • containingTextAndMatchingCSS

      public static Function<PageObject,List<WebElementFacade>> containingTextAndMatchingCSS(String cssOrXPathLocator, String expectedText)
    • containingTextAndMatchingCSS

      public static Function<PageObject,List<WebElementFacade>> containingTextAndMatchingCSS(List<String> cssOrXPathLocators, String expectedText)
    • find

      public WebElementFacade find(org.openqa.selenium.By bySelector)
    • find

      public WebElementFacade find(String xpathOrCssSelector)
    • find

      public WebElementFacade find(String xpathOrCssSelector, Object firstArgument, Object... arguments)
    • moveTo

      public <T extends WebElementFacade> T moveTo(String xpathOrCssSelector)
    • waitForElement

      public WebElementFacadeWait waitForElement()
    • waitForElementForUpTo

      public WebElementFacadeWait waitForElementForUpTo(long timeoutInSeconds)