Example usage for Java org.openqa.selenium.support.ui ExpectedConditions fields, constructors, methods, implement or subclass
The text is from its open source code.
ExpectedCondition | alertIsPresent() |
ExpectedCondition | attributeContains(final WebElement element, final String attribute, final String value) An expectation for checking WebElement with given locator has attribute which contains specific value |
ExpectedCondition | attributeContains(final By locator, final String attribute, final String value) An expectation for checking WebElement with given locator has attribute which contains specific value |
ExpectedCondition | attributeToBe(final By locator, final String attribute, final String value) An expectation for checking WebElement with given locator has attribute with a specific value |
ExpectedCondition | attributeToBe(final WebElement element, final String attribute, final String value) An expectation for checking given WebElement has attribute with a specific value |
ExpectedCondition | attributeToBeNotEmpty(final WebElement element, final String attribute) An expectation for checking WebElement any non empty value for given attribute |
ExpectedCondition | elementSelectionStateToBe(final WebElement element, final boolean selected) An expectation for checking if the given element is selected. |
ExpectedCondition | elementSelectionStateToBe(final By locator, final boolean selected) |
ExpectedCondition | elementToBeClickable(final By locator) An expectation for checking an element is visible and enabled such that you can click it. |
ExpectedCondition | elementToBeClickable(final WebElement element) An expectation for checking an element is visible and enabled such that you can click it. |
ExpectedCondition | elementToBeSelected(final WebElement element) An expectation for checking if the given element is selected. |
ExpectedCondition | elementToBeSelected(final By locator) |
ExpectedCondition | frameToBeAvailableAndSwitchToIt(final String frameLocator) An expectation for checking whether the given frame is available to switch to. |
ExpectedCondition | frameToBeAvailableAndSwitchToIt(final By locator) An expectation for checking whether the given frame is available to switch to. |
ExpectedCondition | frameToBeAvailableAndSwitchToIt(final int frameLocator) An expectation for checking whether the given frame is available to switch to. |
ExpectedCondition | frameToBeAvailableAndSwitchToIt(final WebElement frameLocator) An expectation for checking whether the given frame is available to switch to. |
ExpectedCondition | invisibilityOf(final WebElement element) An expectation for checking the element to be invisible |
ExpectedCondition | invisibilityOfAllElements(final WebElement... elements) An expectation for checking all elements from given list to be invisible |
ExpectedCondition | invisibilityOfAllElements(final List An expectation for checking all elements from given list to be invisible |
ExpectedCondition | invisibilityOfElementLocated(final By locator) An expectation for checking that an element is either invisible or not present on the DOM. |
ExpectedCondition | invisibilityOfElementWithText(final By locator, final String text) An expectation for checking that an element with text is either invisible or not present on the DOM. |
ExpectedCondition | jsReturnsValue(final String javaScript) An expectation for String value from javascript |
ExpectedCondition | not(final ExpectedCondition> condition) An expectation with the logical opposite condition of the given condition. |
ExpectedCondition
| numberOfElementsToBe(final By locator, final Integer number) An expectation for checking number of WebElements with given locator |
ExpectedCondition | numberOfWindowsToBe(final int expectedNumberOfWindows) |
ExpectedCondition
| presenceOfAllElementsLocatedBy(final By locator) An expectation for checking that there is at least one element present on a web page. |
ExpectedCondition | presenceOfElementLocated(final By locator) An expectation for checking that an element is present on the DOM of a page. |
ExpectedCondition | presenceOfNestedElementLocatedBy(final By locator, final By childLocator) An expectation for checking child WebElement as a part of parent element to present |
ExpectedCondition | presenceOfNestedElementLocatedBy(final WebElement element, final By childLocator) An expectation for checking child WebElement as a part of parent element to be present |
ExpectedCondition | refreshed(final ExpectedCondition Wrapper for a condition, which allows for elements to update by redrawing. |
ExpectedCondition | stalenessOf(final WebElement element) Wait until an element is no longer attached to the DOM. |
ExpectedCondition | textToBe(final By locator, final String value) An expectation for checking WebElement with given locator has specific text |
ExpectedCondition | textToBePresentInElement(final WebElement element, final String text) An expectation for checking if the given text is present in the specified element. |
ExpectedCondition | textToBePresentInElementLocated(final By locator, final String text) An expectation for checking if the given text is present in the element that matches the given locator. |
ExpectedCondition | textToBePresentInElementValue(final WebElement element, final String text) An expectation for checking if the given text is present in the specified elements value attribute. |
ExpectedCondition | textToBePresentInElementValue(final By locator, final String text) An expectation for checking if the given text is present in the specified elements value attribute. |
ExpectedCondition | titleContains(final String title) An expectation for checking that the title contains a case-sensitive substring |
ExpectedCondition | titleIs(final String title) An expectation for checking the title of a page. |
ExpectedCondition | urlContains(final String fraction) An expectation for the URL of the current page to contain specific text. |
ExpectedCondition | urlMatches(final String regex) Expectation for the URL to match a specific regular expression |
ExpectedCondition | urlToBe(final String url) An expectation for the URL of the current page to be a specific url. |
ExpectedCondition | visibilityOf(final WebElement element) An expectation for checking that an element, known to be present on the DOM of a page, is visible. |
ExpectedCondition
| visibilityOfAllElements(final WebElement... elements) An expectation for checking that all elements present on the web page that match the locator are visible. |
ExpectedCondition
| visibilityOfAllElements(final List An expectation for checking that all elements present on the web page that match the locator are visible. |
ExpectedCondition
| visibilityOfAllElementsLocatedBy(final By locator) An expectation for checking that all elements present on the web page that match the locator are visible. |
ExpectedCondition | visibilityOfElementLocated(final By locator) An expectation for checking that an element is present on the DOM of a page and visible. |