public interface IElementCacheHandler
| Modifier and Type | Method and Description |
|---|---|
default org.openqa.selenium.remote.RemoteWebElement |
getElement()
Allows to get cached element.
|
default org.openqa.selenium.remote.RemoteWebElement |
getElement(Duration timeout)
Allows to get cached element.
|
org.openqa.selenium.remote.RemoteWebElement |
getElement(Duration timeout,
ElementState customState)
Allows to get cached element.
|
default org.openqa.selenium.remote.RemoteWebElement |
getElement(ElementState customState)
Allows to get cached element.
|
default boolean |
isRefreshNeeded()
Determines is the cached element refresh needed.
|
boolean |
isRefreshNeeded(ElementState customState)
Determines is the cached element refresh needed.
|
default boolean |
isStale()
Determines is the element stale.
|
boolean |
wasCached()
Determines was the element cached previously.
|
default boolean isRefreshNeeded()
boolean isRefreshNeeded(ElementState customState)
customState - custom element's existance state used for search.default boolean isStale()
boolean wasCached()
org.openqa.selenium.remote.RemoteWebElement getElement(Duration timeout, ElementState customState)
timeout - timeout used to retrive the element when isRefreshNeeded() is true.customState - custom element's existance state used for search.default org.openqa.selenium.remote.RemoteWebElement getElement(Duration timeout)
timeout - timeout used to retrive the element when isRefreshNeeded() is true.default org.openqa.selenium.remote.RemoteWebElement getElement(ElementState customState)
customState - custom element's existance state used for search.default org.openqa.selenium.remote.RemoteWebElement getElement()
Copyright © 2020. All rights reserved.