Uses of Interface
org.openqa.selenium.support.ui.ExpectedCondition
Packages that use ExpectedCondition
-
Uses of ExpectedCondition in org.openqa.selenium.support.ui
Methods in org.openqa.selenium.support.ui that return ExpectedConditionModifier and TypeMethodDescriptionstatic ExpectedCondition<org.openqa.selenium.Alert>ExpectedConditions.alertIsPresent()static ExpectedCondition<Boolean>ExpectedConditions.and(ExpectedCondition<?>... conditions) An expectation with the logical and condition of the given list of conditions.static ExpectedCondition<Boolean>ExpectedConditions.attributeContains(org.openqa.selenium.By locator, String attribute, String value) An expectation for checking WebElement with given locator has attribute which contains specific valuestatic ExpectedCondition<Boolean>ExpectedConditions.attributeContains(org.openqa.selenium.WebElement element, String attribute, String value) An expectation for checking WebElement with given locator has attribute which contains specific valuestatic ExpectedCondition<Boolean>ExpectedConditions.attributeToBe(org.openqa.selenium.By locator, String attribute, String value) An expectation for checking WebElement with given locator has attribute with a specific valuestatic ExpectedCondition<Boolean>ExpectedConditions.attributeToBe(org.openqa.selenium.WebElement element, String attribute, String value) An expectation for checking given WebElement has attribute with a specific valuestatic ExpectedCondition<Boolean>ExpectedConditions.attributeToBeNotEmpty(org.openqa.selenium.WebElement element, String attribute) An expectation for checking WebElement any non empty value for given attributestatic ExpectedCondition<Boolean>ExpectedConditions.domAttributeToBe(org.openqa.selenium.WebElement element, String attribute, String value) An expectation for checking given WebElement has DOM attribute with a specific valuestatic ExpectedCondition<Boolean>ExpectedConditions.domPropertyToBe(org.openqa.selenium.WebElement element, String property, String value) An expectation for checking given WebElement has DOM property with a specific valuestatic 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(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.By locator) 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.invisibilityOf(org.openqa.selenium.WebElement element) An expectation for checking the element to be invisiblestatic ExpectedCondition<Boolean>ExpectedConditions.invisibilityOfAllElements(List<org.openqa.selenium.WebElement> elements) An expectation for checking all elements from given list to be invisiblestatic ExpectedCondition<Boolean>ExpectedConditions.invisibilityOfAllElements(org.openqa.selenium.WebElement... elements) An expectation for checking all elements from given list to be invisiblestatic 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.javaScriptThrowsNoExceptions(String javaScript) An expectation to check if js executable.static ExpectedCondition<Object>ExpectedConditions.jsReturnsValue(String javaScript) An expectation for String value from javascriptstatic ExpectedCondition<Boolean>ExpectedConditions.not(ExpectedCondition<?> condition) An expectation with the logical opposite condition of the given condition.static ExpectedCondition<List<org.openqa.selenium.WebElement>>ExpectedConditions.numberOfElementsToBe(org.openqa.selenium.By locator, Integer number) An expectation for checking number of WebElements with given locatorstatic ExpectedCondition<List<org.openqa.selenium.WebElement>>ExpectedConditions.numberOfElementsToBeLessThan(org.openqa.selenium.By locator, Integer number) An expectation for checking number of WebElements with given locator being less than defined numberstatic ExpectedCondition<List<org.openqa.selenium.WebElement>>ExpectedConditions.numberOfElementsToBeMoreThan(org.openqa.selenium.By locator, Integer number) An expectation for checking number of WebElements with given locator being more than defined numberstatic ExpectedCondition<Boolean>ExpectedConditions.numberOfWindowsToBe(int expectedNumberOfWindows) static ExpectedCondition<Boolean>ExpectedConditions.or(ExpectedCondition<?>... conditions) An expectation with the logical or condition of the given list of conditions.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 ExpectedCondition<org.openqa.selenium.WebElement>ExpectedConditions.presenceOfNestedElementLocatedBy(org.openqa.selenium.By locator, org.openqa.selenium.By childLocator) An expectation for checking child WebElement as a part of parent element to presentstatic ExpectedCondition<org.openqa.selenium.WebElement>ExpectedConditions.presenceOfNestedElementLocatedBy(org.openqa.selenium.WebElement element, org.openqa.selenium.By childLocator) An expectation for checking child WebElement as a part of parent element to be presentstatic ExpectedCondition<List<org.openqa.selenium.WebElement>>ExpectedConditions.presenceOfNestedElementsLocatedBy(org.openqa.selenium.By parent, org.openqa.selenium.By childLocator) An expectation for checking child WebElement as a part of parent element to presentstatic <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.textMatches(org.openqa.selenium.By locator, Pattern pattern) An expectation for checking WebElement with given locator has text with a value as a part of itstatic ExpectedCondition<Boolean>An expectation for checking WebElement with given locator has specific textstatic 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 substringstatic ExpectedCondition<Boolean>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 expressionstatic ExpectedCondition<Boolean>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.visibilityOfAllElements(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.static ExpectedCondition<List<org.openqa.selenium.WebElement>>ExpectedConditions.visibilityOfNestedElementsLocatedBy(org.openqa.selenium.By parent, org.openqa.selenium.By childLocator) An expectation for checking child WebElement as a part of parent element to be visiblestatic ExpectedCondition<List<org.openqa.selenium.WebElement>>ExpectedConditions.visibilityOfNestedElementsLocatedBy(org.openqa.selenium.WebElement element, org.openqa.selenium.By childLocator) An expectation for checking child WebElement as a part of parent element to be visibleMethods in org.openqa.selenium.support.ui with parameters of type ExpectedConditionModifier and TypeMethodDescriptionstatic ExpectedCondition<Boolean>ExpectedConditions.and(ExpectedCondition<?>... conditions) An expectation with the logical and condition of the given list of conditions.static ExpectedCondition<Boolean>ExpectedConditions.not(ExpectedCondition<?> condition) An expectation with the logical opposite condition of the given condition.static ExpectedCondition<Boolean>ExpectedConditions.or(ExpectedCondition<?>... conditions) An expectation with the logical or condition of the given list of conditions.static <T> ExpectedCondition<T>ExpectedConditions.refreshed(ExpectedCondition<T> condition) Wrapper for a condition, which allows for elements to update by redrawing.