public class CachedElementStateProvider extends ElementStateProvider
| Constructor and Description |
|---|
CachedElementStateProvider(org.openqa.selenium.By locator,
IConditionalWait conditionalWait,
IElementCacheHandler elementCacheHandler,
ILogElementState logger) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Class<? extends Exception>> |
getHandledExceptions() |
boolean |
isClickable()
Is an element clickable on the form.
|
boolean |
isDisplayed()
Is an element displayed on the form.
|
boolean |
isEnabled()
Check that the element is enabled
|
boolean |
isExist()
Is an element exist in DOM (without visibility check)
|
protected boolean |
tryInvokeFunction(Predicate<org.openqa.selenium.WebElement> predicate) |
protected boolean |
tryInvokeFunction(Predicate<org.openqa.selenium.WebElement> predicate,
List<Class<? extends Exception>> handledExceptions) |
void |
waitForClickable(Duration timeout)
Waits for is element clickable on the form.
|
protected boolean |
waitForCondition(BooleanSupplier condition,
String conditionKeyPart,
Duration timeout) |
boolean |
waitForDisplayed(Duration timeout)
Waits for is element displayed on the form.
|
boolean |
waitForEnabled(Duration timeout)
Check that the element is enabled
|
boolean |
waitForExist(Duration timeout)
Waits until element is exist in DOM (without visibility check).
|
boolean |
waitForNotDisplayed(Duration timeout)
Waits for is element displayed on the form.
|
boolean |
waitForNotEnabled(Duration timeout)
Waits until element does not enabled in DOM
|
boolean |
waitForNotExist(Duration timeout)
Waits until element does not exist in DOM (without visibility check).
|
elementClickable, elementEnabled, elementNotEnabled, isElementEnabled, logElementStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwaitForClickable, waitForDisplayed, waitForEnabled, waitForExist, waitForNotDisplayed, waitForNotEnabled, waitForNotExistpublic CachedElementStateProvider(org.openqa.selenium.By locator,
IConditionalWait conditionalWait,
IElementCacheHandler elementCacheHandler,
ILogElementState logger)
protected boolean tryInvokeFunction(Predicate<org.openqa.selenium.WebElement> predicate)
protected boolean tryInvokeFunction(Predicate<org.openqa.selenium.WebElement> predicate, List<Class<? extends Exception>> handledExceptions)
protected boolean waitForCondition(BooleanSupplier condition, String conditionKeyPart, Duration timeout)
public boolean isClickable()
IElementStateProviderpublic void waitForClickable(Duration timeout)
IElementStateProvidertimeout - Timeout for waitingpublic boolean isDisplayed()
IElementStateProviderpublic boolean waitForDisplayed(Duration timeout)
IElementStateProvidertimeout - Timeout for waitingpublic boolean waitForNotDisplayed(Duration timeout)
IElementStateProvidertimeout - Timeout for waitingpublic boolean isExist()
IElementStateProviderpublic boolean waitForExist(Duration timeout)
IElementStateProvidertimeout - Timeout for waitingpublic boolean waitForNotExist(Duration timeout)
IElementStateProvidertimeout - Timeout for waitingpublic boolean isEnabled()
IElementStateProviderpublic boolean waitForEnabled(Duration timeout)
IElementStateProvidertimeout - Timeout for waitingpublic boolean waitForNotEnabled(Duration timeout)
IElementStateProvidertimeout - Timeout for waitingCopyright © 2020. All rights reserved.