com.atlassian.jira.webtest.framework.impl.selenium.core
Class SeleniumPageObjectFactory
java.lang.Object
com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SeleniumPageObjectFactory
protected SeleniumPageObjectFactory(SeleniumContext context)
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 locatorvalue
- value of the desired locator
- Returns:
- new locator
- See Also:
Locator
Copyright © 2002-2013 Atlassian. All Rights Reserved.