com.atlassian.pageobjects.elements
Class GlobalElementFinder

java.lang.Object
  extended by com.atlassian.pageobjects.elements.GlobalElementFinder
All Implemented Interfaces:
PageElementFinder

public class GlobalElementFinder
extends Object
implements PageElementFinder

PageElementFinder for the global search context (whole page).


Constructor Summary
GlobalElementFinder()
           
 
Method Summary
 PageElement find(org.openqa.selenium.By by)
          Creates PageElement implementation using the specified locator and default timeout.
<T extends PageElement>
T
find(org.openqa.selenium.By by, Class<T> elementClass)
          Creates PageElement extension of type T using the specified locator and default timeout.
<T extends PageElement>
T
find(org.openqa.selenium.By by, Class<T> elementClass, TimeoutType timeoutType)
          Creates PageElement extension of type T using the specified locator and given timeoutType
 PageElement find(org.openqa.selenium.By by, TimeoutType timeoutType)
          Creates PageElement implementation using the specified locator and given timeoutType.
 List<PageElement> findAll(org.openqa.selenium.By by)
          Creates a PageElement for each element that matches the given locator using default timeout.
<T extends PageElement>
List<T>
findAll(org.openqa.selenium.By by, Class<T> elementClass)
          Creates (@Link PageElement) extension of type T for each element that matches the given locator with default timeout
<T extends PageElement>
List<T>
findAll(org.openqa.selenium.By by, Class<T> elementClass, TimeoutType timeoutType)
          Creates (@Link PageElement) extension of type T for each element that matches the given locator with timeoutType
 List<PageElement> findAll(org.openqa.selenium.By by, TimeoutType timeoutType)
          Creates a PageElement for each element that matches the given locator using timeoutType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalElementFinder

public GlobalElementFinder()
Method Detail

find

public PageElement find(org.openqa.selenium.By by)
Description copied from interface: PageElementFinder
Creates PageElement implementation using the specified locator and default timeout.

Specified by:
find in interface PageElementFinder
Parameters:
by - Locator mechanism to use
Returns:
Element that waits until its present in the DOM before executing actions.

find

public PageElement find(org.openqa.selenium.By by,
                        TimeoutType timeoutType)
Description copied from interface: PageElementFinder
Creates PageElement implementation using the specified locator and given timeoutType.

Specified by:
find in interface PageElementFinder
Parameters:
by - Locator mechanism to use
timeoutType - timeout for the element's timed operations
Returns:
Element that waits until its present in the DOM before executing actions.

find

public <T extends PageElement> T find(org.openqa.selenium.By by,
                                      Class<T> elementClass)
Description copied from interface: PageElementFinder
Creates PageElement extension of type T using the specified locator and default timeout.

Specified by:
find in interface PageElementFinder
Parameters:
by - Locator mechanism to use
elementClass - The class of the element to create
Returns:
An instance that implements specified PageElement interface

find

public <T extends PageElement> T find(org.openqa.selenium.By by,
                                      Class<T> elementClass,
                                      TimeoutType timeoutType)
Description copied from interface: PageElementFinder
Creates PageElement extension of type T using the specified locator and given timeoutType

Specified by:
find in interface PageElementFinder
Parameters:
by - Locator mechanism to use
elementClass - The class of the element to create
timeoutType - timeout for the element's timed operations
Returns:
An instance that implements specified PageElement interface

findAll

public List<PageElement> findAll(org.openqa.selenium.By by)
Description copied from interface: PageElementFinder
Creates a PageElement for each element that matches the given locator using default timeout.

Specified by:
findAll in interface PageElementFinder
Parameters:
by - Locator mechanism to use
Returns:
List of PageElements that match the given locator

findAll

public List<PageElement> findAll(org.openqa.selenium.By by,
                                 TimeoutType timeoutType)
Description copied from interface: PageElementFinder
Creates a PageElement for each element that matches the given locator using timeoutType.

Specified by:
findAll in interface PageElementFinder
Parameters:
by - Locator mechanism to use
timeoutType - timeout for the element's timed operations
Returns:
List of PageElements that match the given locator

findAll

public <T extends PageElement> List<T> findAll(org.openqa.selenium.By by,
                                               Class<T> elementClass)
Description copied from interface: PageElementFinder
Creates (@Link PageElement) extension of type T for each element that matches the given locator with default timeout

Specified by:
findAll in interface PageElementFinder
Parameters:
by - Locator mechanism to use
elementClass - The class of the element to create
Returns:
A list of objects that implement specified PageElement interface

findAll

public <T extends PageElement> List<T> findAll(org.openqa.selenium.By by,
                                               Class<T> elementClass,
                                               TimeoutType timeoutType)
Description copied from interface: PageElementFinder
Creates (@Link PageElement) extension of type T for each element that matches the given locator with timeoutType

Specified by:
findAll in interface PageElementFinder
Parameters:
by - Locator mechanism to use
elementClass - The class of the element to create
timeoutType - timeout for the element's timed operations
Returns:
A list of objects that implement specified PageElement interface


Copyright © 2014 Atlassian. All rights reserved.