@PublicApi public interface PageElementQuery<E extends PageElement> extends SearchQuery<E,PageElementQuery<E>>
SearchQuery, whose element type is an instance of PageElement. Allows for nesting the search
(by(By)) and mapping the underlying page elements into elements of specialized type (as(Class), or
with a customized timeout (withTimeout(TimeoutType).| Modifier and Type | Method and Description |
|---|---|
<PE extends E> |
as(Class<PE> pageElementClass)
Map current results to a more specialized
pageElementClass (e.g. |
PageElementQuery<E> |
by(org.openqa.selenium.By by)
Search withing all results for child elements matching
by. |
PageElementQuery<E> |
by(org.openqa.selenium.By by,
com.google.common.base.Predicate<? super PageElement> filter)
Search child elements using
by and applying the filter at the same time. |
PageElementQuery<E> |
withTimeout(TimeoutType timeoutType)
Apply a custom
timeoutType to all resulting elements. |
@Nonnull PageElementQuery<E> by(@Nonnull org.openqa.selenium.By by)
by. This is technically a flat map that will
expand each current result element into a set of child elements matching by.by - locator to search byby@Nonnull PageElementQuery<E> by(@Nonnull org.openqa.selenium.By by, @Nonnull com.google.common.base.Predicate<? super PageElement> filter)
by and applying the filter at the same time. This is equivalent to
calling by(By) and SearchQuery.filter(Predicate) in succession.by - locator to search byfilter - filter for the results of the searchby and filtered using filter@Nonnull PageElementQuery<E> withTimeout(@Nonnull TimeoutType timeoutType)
timeoutType to all resulting elements.timeoutType - new timeout type@Nonnull <PE extends E> PageElementQuery<PE> as(@Nonnull Class<PE> pageElementClass)
pageElementClass (e.g. CheckboxElement).PE - the new element type parameterpageElementClass - the page element class to applypageElementClassCopyright © 2015 Atlassian. All rights reserved.