com.atlassian.bamboo.pageobjects.utils
Class PageElementFunctions
java.lang.Object
com.atlassian.bamboo.pageobjects.utils.PageElementFunctions
public final class PageElementFunctions
- extends java.lang.Object
Functions for easier handling of PageElement
s.
- Since:
- v3.3
Method Summary |
static
<T> com.google.common.base.Function<com.atlassian.pageobjects.elements.PageElement,T> |
|
binder(java.lang.Class<T> componentClass,
com.atlassian.pageobjects.PageBinder binder)
Function creating page objects that are components wrapping around page elements. |
static com.google.common.base.Function<com.atlassian.pageobjects.elements.PageElement,com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean>> |
isPresent()
|
static com.google.common.base.Function<com.atlassian.pageobjects.elements.Option,java.lang.String> |
optionValue()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
binder
public static <T> com.google.common.base.Function<com.atlassian.pageobjects.elements.PageElement,T> binder(java.lang.Class<T> componentClass,
com.atlassian.pageobjects.PageBinder binder)
- Function creating page objects that are components wrapping around page elements. Often we need to return
collections of such wrappers and this is where this function comes in handy.
- Type Parameters:
T
- type of the page object- Parameters:
componentClass
- class of the page object to instantiatebinder
- page binder
- Returns:
- function instantiating the wrapping page objects
isPresent
public static com.google.common.base.Function<com.atlassian.pageobjects.elements.PageElement,com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean>> isPresent()
optionValue
public static com.google.common.base.Function<com.atlassian.pageobjects.elements.Option,java.lang.String> optionValue()
Copyright © 2012 Atlassian. All Rights Reserved.