Package | Description |
---|---|
org.openqa.selenium.support.ui |
Modifier and Type | Method and Description |
---|---|
static ExpectedCondition<org.openqa.selenium.Alert> |
ExpectedConditions.alertIsPresent() |
static ExpectedCondition<Boolean> |
ExpectedConditions.elementSelectionStateToBe(org.openqa.selenium.By locator,
boolean selected) |
static ExpectedCondition<Boolean> |
ExpectedConditions.elementSelectionStateToBe(org.openqa.selenium.WebElement element,
boolean selected)
An expectation for checking if the given element is selected.
|
static ExpectedCondition<org.openqa.selenium.WebElement> |
ExpectedConditions.elementToBeClickable(org.openqa.selenium.By locator)
An expectation for checking an element is visible and enabled such that you
can click it.
|
static ExpectedCondition<org.openqa.selenium.WebElement> |
ExpectedConditions.elementToBeClickable(org.openqa.selenium.WebElement element)
An expectation for checking an element is visible and enabled such that you
can click it.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.elementToBeSelected(org.openqa.selenium.By locator) |
static ExpectedCondition<Boolean> |
ExpectedConditions.elementToBeSelected(org.openqa.selenium.WebElement element)
An expectation for checking if the given element is selected.
|
static ExpectedCondition<org.openqa.selenium.WebDriver> |
ExpectedConditions.frameToBeAvailableAndSwitchToIt(org.openqa.selenium.By locator)
An expectation for checking whether the given frame is available to switch
to.
|
static ExpectedCondition<org.openqa.selenium.WebDriver> |
ExpectedConditions.frameToBeAvailableAndSwitchToIt(int frameLocator)
An expectation for checking whether the given frame is available to switch
to.
|
static ExpectedCondition<org.openqa.selenium.WebDriver> |
ExpectedConditions.frameToBeAvailableAndSwitchToIt(String frameLocator)
An expectation for checking whether the given frame is available to switch
to.
|
static ExpectedCondition<org.openqa.selenium.WebDriver> |
ExpectedConditions.frameToBeAvailableAndSwitchToIt(org.openqa.selenium.WebElement frameLocator)
An expectation for checking whether the given frame is available to switch
to.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.invisibilityOfElementLocated(org.openqa.selenium.By locator)
An expectation for checking that an element is either invisible or not
present on the DOM.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.invisibilityOfElementWithText(org.openqa.selenium.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<Boolean> |
ExpectedConditions.numberOfwindowsToBe(int expectedNumberOfWindows)
Deprecated.
please use
ExpectedConditions.numberOfWindowsToBe(int) instead |
static ExpectedCondition<Boolean> |
ExpectedConditions.numberOfWindowsToBe(int expectedNumberOfWindows) |
static ExpectedCondition<List<org.openqa.selenium.WebElement>> |
ExpectedConditions.presenceOfAllElementsLocatedBy(org.openqa.selenium.By locator)
An expectation for checking that there is at least one element present on a
web page.
|
static ExpectedCondition<org.openqa.selenium.WebElement> |
ExpectedConditions.presenceOfElementLocated(org.openqa.selenium.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(org.openqa.selenium.WebElement element)
Wait until an element is no longer attached to the DOM.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.textToBePresentInElement(org.openqa.selenium.By locator,
String text)
Deprecated.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.textToBePresentInElement(org.openqa.selenium.WebElement element,
String text)
An expectation for checking if the given text is present in the specified element.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.textToBePresentInElementLocated(org.openqa.selenium.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(org.openqa.selenium.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(org.openqa.selenium.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<Boolean> |
ExpectedConditions.urlContains(String fraction)
An expectation for the URL of the current page to contain specific text.
|
static ExpectedCondition<Boolean> |
ExpectedConditions.urlMatches(String regex)
Expectation for the URL to match a specific regular expression
|
static ExpectedCondition<Boolean> |
ExpectedConditions.urlToBe(String url)
An expectation for the URL of the current page to be a specific url.
|
static ExpectedCondition<org.openqa.selenium.WebElement> |
ExpectedConditions.visibilityOf(org.openqa.selenium.WebElement element)
An expectation for checking that an element, known to be present on the DOM
of a page, is visible.
|
static ExpectedCondition<List<org.openqa.selenium.WebElement>> |
ExpectedConditions.visibilityOfAllElements(List<org.openqa.selenium.WebElement> elements)
An expectation for checking that all elements present on the web page that
match the locator are visible.
|
static ExpectedCondition<List<org.openqa.selenium.WebElement>> |
ExpectedConditions.visibilityOfAllElementsLocatedBy(org.openqa.selenium.By locator)
An expectation for checking that all elements present on the web page that
match the locator are visible.
|
static ExpectedCondition<org.openqa.selenium.WebElement> |
ExpectedConditions.visibilityOfElementLocated(org.openqa.selenium.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 © 2016. All rights reserved.