|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Internal public interface WebDriverLocatable
A
SearchContext that can be located by WebDriver, capable of re-locating. A locatable consists of locator
used to locate itself, and the parent locatable that forms a search context, in which we locate this locatable.
Locatables form a list representing the parent-child relationship of SearchContexts. The root locatable
is always the locatable for WebDriver itself (think of it as a global search context).
To locate a SearchContext, first the parent is located then the locator is applied to it.
| Nested Class Summary | |
|---|---|
static class |
WebDriverLocatable.LocateTimeout
Provides information about timeout and poll interval to use while performing locatable operations. |
| Method Summary | |
|---|---|
org.openqa.selenium.By |
getLocator()
Gets the WebDriver locator for this SearchContext. |
WebDriverLocatable |
getParent()
The parent of this SearchContext. |
boolean |
isPresent(org.openqa.selenium.WebDriver driver,
int timeoutInSeconds)
Deprecated. use isPresent(WebDriver, WebDriverLocatable.LocateTimeout) instead. Scheduled for removal
in 3.0 |
boolean |
isPresent(org.openqa.selenium.WebDriver driver,
WebDriverLocatable.LocateTimeout timeout)
Whether this SearchContext is present, given its parent is located by timeout. |
org.openqa.selenium.SearchContext |
waitUntilLocated(org.openqa.selenium.WebDriver driver,
int timeoutInSeconds)
Deprecated. use waitUntilLocated(WebDriver, WebDriverLocatable.LocateTimeout) instead. Scheduled for
removal in 3.0 |
org.openqa.selenium.SearchContext |
waitUntilLocated(org.openqa.selenium.WebDriver driver,
WebDriverLocatable.LocateTimeout timeout)
Wait until the SearchContext represented by this locatable is located. |
| Method Detail |
|---|
@Nullable org.openqa.selenium.By getLocator()
@Nullable WebDriverLocatable getParent()
@Deprecated
@Nonnull
org.openqa.selenium.SearchContext waitUntilLocated(@Nonnull
org.openqa.selenium.WebDriver driver,
int timeoutInSeconds)
throws org.openqa.selenium.NoSuchElementException
waitUntilLocated(WebDriver, WebDriverLocatable.LocateTimeout) instead. Scheduled for
removal in 3.0
driver - the WebDriver instance.timeoutInSeconds - timeout to wait until located, must be >= 0.
org.openqa.selenium.NoSuchElementException - if context could not be located before timeout expired
@Deprecated
boolean isPresent(@Nonnull
org.openqa.selenium.WebDriver driver,
int timeoutInSeconds)
isPresent(WebDriver, WebDriverLocatable.LocateTimeout) instead. Scheduled for removal
in 3.0
driver - the WebDriver instance.timeoutInSeconds - timeout to wait until parent is located, must be >= 0
true if SearchContext is located before the timeout expires, false otherwise.
@Nonnull
org.openqa.selenium.SearchContext waitUntilLocated(@Nonnull
org.openqa.selenium.WebDriver driver,
@Nonnull
WebDriverLocatable.LocateTimeout timeout)
throws org.openqa.selenium.NoSuchElementException
SearchContext represented by this locatable is located.
driver - the WebDriver instance.timeout - LocateTimeout instance specifying the time to wait until located, must be >= 0.
org.openqa.selenium.NoSuchElementException - if context could not be located before timeout expiredWebDriverLocatable.LocateTimeout,
SearchContext
boolean isPresent(@Nonnull
org.openqa.selenium.WebDriver driver,
@Nonnull
WebDriverLocatable.LocateTimeout timeout)
SearchContext is present, given its parent is located by timeout.
driver - the WebDriver instance.timeout - LocateTimeout instance specifying the time to wait until the parent is located, must be >= 0.
SearchContext is located before the timeout expires, false
otherwiseWebDriverLocatable.LocateTimeout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||