Package | Description |
---|---|
org.openqa.selenium.support.ui |
Modifier and Type | Method and Description |
---|---|
static ExpectedCondition<Alert> |
ExpectedConditions.alertIsPresent() |
static ExpectedCondition<Boolean> |
ExpectedConditions.elementSelectionStateToBe(By locator,
boolean selected) |
static ExpectedCondition<Boolean> |
ExpectedConditions.elementSelectionStateToBe(WebElement element,
boolean selected)
An expectation for checking if the given element is selected.
|
static ExpectedCondition<WebElement> |
ExpectedConditions.elementToBeClickable(By locator)
An expectation for checking an element is visible and enabled such that you
can click it.
|
static ExpectedCondition<WebElement> |
ExpectedConditions.elementToBeClickable(WebElement element)
An expectation for checking an element is visible and enabled such that you
can click it.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.elementToBeSelected(By locator) |
static ExpectedCondition<Boolean> |
ExpectedConditions.elementToBeSelected(WebElement element)
An expectation for checking if the given element is selected.
|
static ExpectedCondition<WebDriver> |
ExpectedConditions.frameToBeAvailableAndSwitchToIt(By locator)
An expectation for checking whether the given frame is available to switch
to.
|
static ExpectedCondition<WebDriver> |
ExpectedConditions.frameToBeAvailableAndSwitchToIt(String frameLocator)
An expectation for checking whether the given frame is available to switch
to.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.invisibilityOfElementLocated(By locator)
An expectation for checking that an element is either invisible or not
present on the DOM.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.invisibilityOfElementWithText(By locator,
String text)
An expectation for checking that an element with text is either invisible
or not present on the DOM.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.not(ExpectedCondition<?> condition)
An expectation with the logical opposite condition of the given condition.
|
static ExpectedCondition<List<WebElement>> |
ExpectedConditions.presenceOfAllElementsLocatedBy(By locator)
An expectation for checking that there is at least one element present on a
web page.
|
static ExpectedCondition<WebElement> |
ExpectedConditions.presenceOfElementLocated(By locator)
An expectation for checking that an element is present on the DOM of a
page.
|
static <T> ExpectedCondition<T> |
ExpectedConditions.refreshed(ExpectedCondition<T> condition)
Wrapper for a condition, which allows for elements to update by redrawing.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.stalenessOf(WebElement element)
Wait until an element is no longer attached to the DOM.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.textToBePresentInElement(By locator,
String text)
Deprecated.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.textToBePresentInElement(WebElement element,
String text)
An expectation for checking if the given text is present in the specified element.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.textToBePresentInElementLocated(By locator,
String text)
An expectation for checking if the given text is present in the element that matches
the given locator.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.textToBePresentInElementValue(By locator,
String text)
An expectation for checking if the given text is present in the specified
elements value attribute.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.textToBePresentInElementValue(WebElement element,
String text)
An expectation for checking if the given text is present in the specified
elements value attribute.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.titleContains(String title)
An expectation for checking that the title contains a case-sensitive
substring
|
static ExpectedCondition<Boolean> |
ExpectedConditions.titleIs(String title)
An expectation for checking the title of a page.
|
static ExpectedCondition<WebElement> |
ExpectedConditions.visibilityOf(WebElement element)
An expectation for checking that an element, known to be present on the DOM
of a page, is visible.
|
static ExpectedCondition<List<WebElement>> |
ExpectedConditions.visibilityOfAllElements(List<WebElement> elements)
An expectation for checking that all elements present on the web page that
match the locator are visible.
|
static ExpectedCondition<List<WebElement>> |
ExpectedConditions.visibilityOfAllElementsLocatedBy(By locator)
An expectation for checking that all elements present on the web page that
match the locator are visible.
|
static ExpectedCondition<WebElement> |
ExpectedConditions.visibilityOfElementLocated(By locator)
An expectation for checking that an element is present on the DOM of a page
and visible.
|
Modifier and Type | Method and Description |
---|---|
static ExpectedCondition<Boolean> |
ExpectedConditions.not(ExpectedCondition<?> condition)
An expectation with the logical opposite condition of the given condition.
|
static <T> ExpectedCondition<T> |
ExpectedConditions.refreshed(ExpectedCondition<T> condition)
Wrapper for a condition, which allows for elements to update by redrawing.
|
Copyright © 2014. All rights reserved.