com.atlassian.jira.webtest.framework.impl.selenium.core
Class SeleniumPageObjectFactory

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumPageObjectFactory
All Implemented Interfaces:
PageObjectFactory

public class SeleniumPageObjectFactory
extends SeleniumContextAware
implements PageObjectFactory

Selenium implementation of PageObjectFactory.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
protected SeleniumPageObjectFactory(SeleniumContext context)
           
 
Method Summary
<T extends GlobalPage>
T
createGlobalPage(Class<T> pageType)
          Create a global page of given pageType.
 Locator createLocator(LocatorType type, String value)
          Create locator given a locator type and value.
<P extends PageObject>
P
createPageObject(Class<P> pageType)
          Create any page object component of the framework
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeleniumPageObjectFactory

protected SeleniumPageObjectFactory(SeleniumContext context)
Method Detail

createGlobalPage

public <T extends GlobalPage> T createGlobalPage(Class<T> pageType)
Description copied from interface: PageObjectFactory
Create a global page of given pageType.

Specified by:
createGlobalPage in interface PageObjectFactory
Type Parameters:
T - type of the global page to create
Parameters:
pageType - class representing the interface of the desired global page.
Returns:
a global page instance that is a valid implementation of the GlobalPage interface in the test context represented by this factory
See Also:
GlobalPages

createPageObject

public <P extends PageObject> P createPageObject(Class<P> pageType)
Description copied from interface: PageObjectFactory
Create any page object component of the framework

Specified by:
createPageObject in interface PageObjectFactory
Type Parameters:
P - type of the component
Parameters:
pageType - component class
Returns:
component instance

createLocator

public Locator createLocator(LocatorType type,
                             String value)
Description copied from interface: PageObjectFactory
Create locator given a locator type and value.

Specified by:
createLocator in interface PageObjectFactory
Parameters:
type - type of the desired locator
value - value of the desired locator
Returns:
new locator
See Also:
Locator


Copyright © 2002-2013 Atlassian. All Rights Reserved.