public class RenderedPageObjectView extends Object
Constructor and Description |
---|
RenderedPageObjectView(org.openqa.selenium.WebDriver driver,
PageObject pageObject,
Duration waitForTimeout,
boolean timeoutCanBeOverriden) |
RenderedPageObjectView(org.openqa.selenium.WebDriver driver,
PageObject pageObject,
long waitForTimeoutInMilliseconds) |
Modifier and Type | Method and Description |
---|---|
static Function<PageObject,List<WebElementFacade>> |
containingTextAndMatchingCSS(List<String> cssOrXPathLocators,
String expectedText) |
static Function<PageObject,List<WebElementFacade>> |
containingTextAndMatchingCSS(String cssOrXPathLocator,
String expectedText) |
boolean |
containsText(String textValue) |
boolean |
containsText(org.openqa.selenium.WebElement element,
String textValue) |
org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> |
doWait() |
boolean |
elementIsCurrentlyVisible(org.openqa.selenium.By byElementCriteria) |
boolean |
elementIsDisplayed(org.openqa.selenium.By byElementCriteria) |
boolean |
elementIsPresent(org.openqa.selenium.By byElementCriteria) |
WebElementFacade |
find(org.openqa.selenium.By bySelector) |
WebElementFacade |
find(String xpathOrCssSelector) |
WebElementFacade |
find(String xpathOrCssSelector,
Object firstArgument,
Object... arguments) |
List<WebElementFacade> |
findAll(org.openqa.selenium.By bySelector) |
List<WebElementFacade> |
findAll(String xpathOrCssSelector) |
List<WebElementFacade> |
findAllWithNoWait(org.openqa.selenium.By bySelector) |
protected List<WebElementFacade> |
findAllWithOptionalWait(org.openqa.selenium.By bySelector,
FindAllWaitOptions waitForOptions) |
List<WebElementFacade> |
findFirstMatching(List<String> xpathOrCssSelectors) |
Duration |
getWaitForTimeout() |
<T extends WebElementFacade> |
moveTo(String xpathOrCssSelector) |
void |
setWaitForTimeout(Duration waitForTimeout) |
org.openqa.selenium.support.ui.WebDriverWait |
thenWait() |
WebElementFacade |
waitFor(org.openqa.selenium.By byElementCriteria)
This method will wait until an element is present and visible on the screen.
|
<T> T |
waitFor(org.openqa.selenium.support.ui.ExpectedCondition<T> expectedCondition) |
List<WebElementFacade> |
waitFor(List<WebElementFacade> webElements) |
WebElementFacade |
waitFor(String xpathOrCssSelector) |
<T> T |
waitFor(String message,
org.openqa.selenium.support.ui.ExpectedCondition<T> expectedCondition) |
WebElementFacade |
waitFor(org.openqa.selenium.WebElement webElement) |
WebElementFacade |
waitFor(WebElementFacade webElement) |
void |
waitForAbsenceOf(String xpathOrCssSelector) |
void |
waitForAllTextToAppear(String... expectedTexts) |
void |
waitForAnyRenderedElementOf(org.openqa.selenium.By[] expectedElements) |
void |
waitForAnyTextToAppear(String... expectedTexts) |
void |
waitForAnyTextToAppear(org.openqa.selenium.WebElement element,
String... expectedTexts) |
ThucydidesFluentWait<org.openqa.selenium.WebDriver> |
waitForCondition() |
WebElementFacadeWait |
waitForElement() |
WebElementFacadeWait |
waitForElementForUpTo(long timeoutInSeconds) |
void |
waitForElementsToDisappear(org.openqa.selenium.By byElementCriteria) |
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.
|
void |
waitForText(String expectedText) |
void |
waitForText(org.openqa.selenium.WebElement element,
String expectedText) |
void |
waitForTextToAppear(String expectedText,
long timeout) |
void |
waitForTextToDisappear(String expectedText,
long timeout) |
void |
waitForTitle(String expectedTitle) |
void |
waitForTitleToDisappear(String expectedTitle) |
public RenderedPageObjectView(org.openqa.selenium.WebDriver driver, PageObject pageObject, long waitForTimeoutInMilliseconds)
public RenderedPageObjectView(org.openqa.selenium.WebDriver driver, PageObject pageObject, Duration waitForTimeout, boolean timeoutCanBeOverriden)
public ThucydidesFluentWait<org.openqa.selenium.WebDriver> waitForCondition()
public org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> doWait()
public WebElementFacade waitFor(org.openqa.selenium.By byElementCriteria)
public <T> T waitFor(org.openqa.selenium.support.ui.ExpectedCondition<T> expectedCondition)
public <T> T waitFor(String message, org.openqa.selenium.support.ui.ExpectedCondition<T> expectedCondition)
public WebElementFacade waitFor(String xpathOrCssSelector)
public WebElementFacade waitFor(org.openqa.selenium.WebElement webElement)
public WebElementFacade waitFor(WebElementFacade webElement)
public List<WebElementFacade> waitFor(List<WebElementFacade> webElements)
public org.openqa.selenium.WebElement waitForPresenceOf(org.openqa.selenium.By byElementCriteria)
public boolean elementIsPresent(org.openqa.selenium.By byElementCriteria)
public boolean elementIsDisplayed(org.openqa.selenium.By byElementCriteria)
public boolean elementIsCurrentlyVisible(org.openqa.selenium.By byElementCriteria)
public void waitForText(String expectedText)
public org.openqa.selenium.support.ui.WebDriverWait thenWait()
public void waitForText(org.openqa.selenium.WebElement element, String expectedText)
public void waitForTitle(String expectedTitle)
public boolean containsText(String textValue)
public boolean containsText(org.openqa.selenium.WebElement element, String textValue)
public void waitForTextToDisappear(String expectedText, long timeout)
public void waitForTextToAppear(String expectedText, long timeout)
public void waitForTitleToDisappear(String expectedTitle)
public void waitForAnyTextToAppear(String... expectedTexts)
public void waitForAnyTextToAppear(org.openqa.selenium.WebElement element, String... expectedTexts)
public void waitForAbsenceOf(String xpathOrCssSelector)
public void waitForAllTextToAppear(String... expectedTexts)
public void waitForElementsToDisappear(org.openqa.selenium.By byElementCriteria)
public void waitForAnyRenderedElementOf(org.openqa.selenium.By[] expectedElements)
public void setWaitForTimeout(Duration waitForTimeout)
public Duration getWaitForTimeout()
protected List<WebElementFacade> findAllWithOptionalWait(org.openqa.selenium.By bySelector, FindAllWaitOptions waitForOptions)
public List<WebElementFacade> findAll(org.openqa.selenium.By bySelector)
public List<WebElementFacade> findAllWithNoWait(org.openqa.selenium.By bySelector)
public List<WebElementFacade> findAll(String xpathOrCssSelector)
public List<WebElementFacade> findFirstMatching(List<String> xpathOrCssSelectors)
public static Function<PageObject,List<WebElementFacade>> containingTextAndMatchingCSS(String cssOrXPathLocator, String expectedText)
public static Function<PageObject,List<WebElementFacade>> containingTextAndMatchingCSS(List<String> cssOrXPathLocators, String expectedText)
public WebElementFacade find(org.openqa.selenium.By bySelector)
public WebElementFacade find(String xpathOrCssSelector)
public WebElementFacade find(String xpathOrCssSelector, Object firstArgument, Object... arguments)
public <T extends WebElementFacade> T moveTo(String xpathOrCssSelector)
public WebElementFacadeWait waitForElement()
public WebElementFacadeWait waitForElementForUpTo(long timeoutInSeconds)
Copyright © 2021. All rights reserved.