public class ElementConditions extends Object
ExpectedConditions for WebElement.| Constructor and Description |
|---|
ElementConditions() |
| Modifier and Type | Method and Description |
|---|---|
static org.openqa.selenium.support.ui.ExpectedCondition<org.openqa.selenium.WebElement> |
textMatches(org.openqa.selenium.By locator,
Pattern pattern)
Condition met when an element contains text matching given pattern.
|
static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> |
visibilityOfAllNestedElementsLocatedBy(org.openqa.selenium.WebElement parentElement,
org.openqa.selenium.By childElementLocator)
Condition met when all child (descendant)
elements matching given locator are visible. |
static org.openqa.selenium.support.ui.ExpectedCondition<org.openqa.selenium.WebElement> |
visibilityOfNestedElement(org.openqa.selenium.WebElement parentElement,
org.openqa.selenium.By childElementLocator)
Condition met when a child (descendant)
element matching given locator is visible. |
public static org.openqa.selenium.support.ui.ExpectedCondition<org.openqa.selenium.WebElement> textMatches(org.openqa.selenium.By locator,
Pattern pattern)
locator - locator of the element, element must be displayedpattern - regular expression to matchpublic static org.openqa.selenium.support.ui.ExpectedCondition<org.openqa.selenium.WebElement> visibilityOfNestedElement(org.openqa.selenium.WebElement parentElement,
org.openqa.selenium.By childElementLocator)
element matching given locator is visible.parentElement - parent WebElement, expected to be valid and visiblechildElementLocator - locator of child WebElementpublic static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> visibilityOfAllNestedElementsLocatedBy(org.openqa.selenium.WebElement parentElement, org.openqa.selenium.By childElementLocator)
elements matching given locator are visible.parentElement - parent WebElement, expected to be valid and visiblechildElementLocator - locator of child WebElementCopyright © 2017. All Rights Reserved.