public interface IElementFinder
extends org.openqa.selenium.SearchContext
ElementState;
- with DesiredState;
- with Predicate.| Modifier and Type | Method and Description |
|---|---|
default org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By locator)
Finds element in any state with default timeout.
|
default org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By locator,
Duration timeout)
Finds element in any state.
|
default org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By locator,
ElementState state)
Finds element in desired
ElementState with default timeout. |
default org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By locator,
ElementState state,
Duration timeout)
Finds element in desired
ElementState |
default org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By locator,
Predicate<org.openqa.selenium.WebElement> elementStateCondition)
Finds element in desired ElementState defined by predicate with default timeout.
|
default org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By locator,
Predicate<org.openqa.selenium.WebElement> elementStateCondition,
Duration timeout)
Finds element in desired element's state defined by predicate.
|
default List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By locator)
Finds elements in any state with default timeout.
|
default List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By locator,
DesiredState desiredState)
Finds elements in state defined by
DesiredState with default timeout. |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By locator,
DesiredState desiredState,
Duration timeout)
Finds elements in state defined by
DesiredState. |
default List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By locator,
Duration timeout)
Finds elements in any state.
|
default List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By locator,
ElementState state)
Finds elements in desired
ElementState with default timeout. |
default List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By locator,
ElementState state,
Duration timeout)
Finds elements in desired
ElementState. |
default List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By locator,
Predicate<org.openqa.selenium.WebElement> elementStateCondition)
Finds elements in state defined by predicate with default timeout.
|
default List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By locator,
Predicate<org.openqa.selenium.WebElement> elementStateCondition,
Duration timeout)
Finds elements in state defined by predicate.
|
default DesiredState |
resolveState(ElementState state)
Provides
DesiredState with predicate for desired ElementState. |
default DesiredState resolveState(ElementState state)
DesiredState with predicate for desired ElementState.state - desired ElementStateDesiredState with predicate.default org.openqa.selenium.WebElement findElement(org.openqa.selenium.By locator,
ElementState state,
Duration timeout)
ElementStatelocator - elements locatorstate - desired ElementStatetimeout - timeout for searchorg.openqa.selenium.NoSuchElementException - if element was not found in time in desired statedefault org.openqa.selenium.WebElement findElement(org.openqa.selenium.By locator,
ElementState state)
ElementState with default timeout.locator - elements locatorstate - desired ElementStateorg.openqa.selenium.NoSuchElementException - if element was not found in time in desired statedefault org.openqa.selenium.WebElement findElement(org.openqa.selenium.By locator,
Duration timeout)
locator - elements locatortimeout - timeout for searchorg.openqa.selenium.NoSuchElementException - if element was not found in timedefault org.openqa.selenium.WebElement findElement(org.openqa.selenium.By locator)
findElement in interface org.openqa.selenium.SearchContextlocator - elements locatororg.openqa.selenium.NoSuchElementException - if element was not found in timedefault org.openqa.selenium.WebElement findElement(org.openqa.selenium.By locator,
Predicate<org.openqa.selenium.WebElement> elementStateCondition,
Duration timeout)
locator - elements locatorelementStateCondition - predicate to define element statetimeout - timeout for searchorg.openqa.selenium.NoSuchElementException - if element was not found in time in desired statedefault org.openqa.selenium.WebElement findElement(org.openqa.selenium.By locator,
Predicate<org.openqa.selenium.WebElement> elementStateCondition)
locator - elements locatorelementStateCondition - predicate to define element stateorg.openqa.selenium.NoSuchElementException - if element was not found in time in desired statedefault List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By locator, ElementState state, Duration timeout)
ElementState.locator - elements locatorstate - desired ElementStatetimeout - timeout for searchdefault List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By locator, Duration timeout)
locator - elements locatortimeout - timeout for searchdefault List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By locator, ElementState state)
ElementState with default timeout.locator - elements locatorstate - desired ElementStatedefault List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By locator)
findElements in interface org.openqa.selenium.SearchContextlocator - elements locatordefault List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By locator, Predicate<org.openqa.selenium.WebElement> elementStateCondition, Duration timeout)
locator - elements locatortimeout - timeout for searchelementStateCondition - predicate to define element statedefault List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By locator, Predicate<org.openqa.selenium.WebElement> elementStateCondition)
locator - elements locatorelementStateCondition - predicate to define element stateList<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By locator, DesiredState desiredState, Duration timeout)
DesiredState.locator - elements locatortimeout - timeout for searchdesiredState - object with predicate to define element statedefault List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By locator, DesiredState desiredState)
DesiredState with default timeout.locator - elements locatordesiredState - object with predicate to define element stateCopyright © 2020. All rights reserved.