public final class PageElements extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BODY |
static String |
TD |
static com.google.common.base.Function<com.atlassian.pageobjects.elements.PageElement,String> |
TEXT |
static String |
TR |
Modifier and Type | Method and Description |
---|---|
static List<String> |
asText(Iterable<? extends com.atlassian.pageobjects.elements.PageElement> elements)
Turn some page elements into a list with their text content.
|
static com.google.common.base.Predicate<? super com.atlassian.pageobjects.elements.PageElement> |
attributeExists(String attribute) |
static <P> com.google.common.base.Function<com.atlassian.pageobjects.elements.PageElement,P> |
bind(com.atlassian.pageobjects.PageBinder binder,
Class<P> pageObjectClass)
Binds 'simple' page objects that take one constructor parameter (page elements), e.g.
|
static com.google.common.base.Function<com.atlassian.pageobjects.elements.PageElement,String> |
getAttribute(String attributeName) |
static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> |
hasClass(String className) |
static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> |
hasDataAttribute(String attribute) |
static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> |
hasDataAttribute(String attribute,
String value) |
static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> |
hasValue(String value) |
static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> |
isPresent() |
static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> |
isVisible() |
static void |
removeAuiBlanket(org.openqa.selenium.WebDriver driver) |
static void |
scrollIntoView(com.atlassian.pageobjects.elements.PageElement element)
Scrolls the passed element into view.
|
static <P> Iterable<P> |
transform(com.atlassian.pageobjects.PageBinder binder,
Iterable<com.atlassian.pageobjects.elements.PageElement> pageElements,
Class<P> pageObjectClass)
Transforms a list of page elements into a list of page objects wrapping those elements.
|
static <P> com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<P>> |
transformTimed(com.atlassian.pageobjects.elements.timeout.Timeouts timeouts,
com.atlassian.pageobjects.PageBinder binder,
com.google.common.base.Supplier<Iterable<com.atlassian.pageobjects.elements.PageElement>> pageElements,
Class<P> pageObjectClass)
A transform that returns a timed query yaaay.
|
public static final String BODY
public static final String TR
public static final String TD
public static com.google.common.base.Function<com.atlassian.pageobjects.elements.PageElement,String> TEXT
public static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> isVisible()
public static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> isPresent()
public static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> hasClass(String className)
public static com.google.common.base.Predicate<? super com.atlassian.pageobjects.elements.PageElement> attributeExists(String attribute)
public static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> hasDataAttribute(String attribute)
public static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> hasDataAttribute(String attribute, String value)
public static com.google.common.base.Predicate<com.atlassian.pageobjects.elements.PageElement> hasValue(@Nonnull String value)
public static com.google.common.base.Function<com.atlassian.pageobjects.elements.PageElement,String> getAttribute(String attributeName)
public static <P> com.google.common.base.Function<com.atlassian.pageobjects.elements.PageElement,P> bind(com.atlassian.pageobjects.PageBinder binder, Class<P> pageObjectClass)
P
- page object typebinder
- page binderpageObjectClass
- target page object classpublic static <P> Iterable<P> transform(com.atlassian.pageobjects.PageBinder binder, Iterable<com.atlassian.pageobjects.elements.PageElement> pageElements, Class<P> pageObjectClass)
P
- page object typebinder
- page binderpageElements
- a list of page elements to transformpageObjectClass
- target page object classbind(com.atlassian.pageobjects.PageBinder, Class)
public static <P> com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<P>> transformTimed(com.atlassian.pageobjects.elements.timeout.Timeouts timeouts, com.atlassian.pageobjects.PageBinder binder, com.google.common.base.Supplier<Iterable<com.atlassian.pageobjects.elements.PageElement>> pageElements, Class<P> pageObjectClass)
P
- page object typetimeouts
- timeoutsbinder
- page binderpageElements
- a list of page elements to transformpageObjectClass
- target page object classtransform(com.atlassian.pageobjects.PageBinder, Iterable, Class)
public static List<String> asText(Iterable<? extends com.atlassian.pageobjects.elements.PageElement> elements)
elements
- the elements to convert.public static void scrollIntoView(com.atlassian.pageobjects.elements.PageElement element)
scrollIntoView()
.element
- the element to scroll into viewpublic static void removeAuiBlanket(org.openqa.selenium.WebDriver driver)
Copyright © 2002-2022 Atlassian. All Rights Reserved.