com.atlassian.webdriver.jira
Class JiraTestedProduct

java.lang.Object
  extended by com.atlassian.webdriver.jira.JiraTestedProduct
All Implemented Interfaces:
TestedProduct<WebDriverTester>

public class JiraTestedProduct
extends Object
implements TestedProduct<WebDriverTester>


Constructor Summary
JiraTestedProduct(TestedProductFactory.TesterFactory<WebDriverTester> testerFactory, ProductInstance productInstance)
           
 
Method Summary
 PageBinder getPageBinder()
           
 ProductInstance getProductInstance()
           
 WebDriverTester getTester()
           
 JiraAdminHomePage gotoAdminHomePage()
           
 DashboardPage gotoHomePage()
           
 JiraLoginPage gotoLoginPage()
           
<P extends Page>
P
visit(Class<P> pageClass, Object... args)
          Constructs the page object, changes the browser URL to the desired page URL, then binds the object to the page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraTestedProduct

public JiraTestedProduct(TestedProductFactory.TesterFactory<WebDriverTester> testerFactory,
                         ProductInstance productInstance)
Method Detail

gotoHomePage

public DashboardPage gotoHomePage()

gotoAdminHomePage

public JiraAdminHomePage gotoAdminHomePage()

gotoLoginPage

public JiraLoginPage gotoLoginPage()

visit

public <P extends Page> P visit(Class<P> pageClass,
                                Object... args)
Description copied from interface: TestedProduct
Constructs the page object, changes the browser URL to the desired page URL, then binds the object to the page.

Specified by:
visit in interface TestedProduct<WebDriverTester>
Type Parameters:
P - The page type
Parameters:
pageClass - The page class
args - Arguments to pass to the page object constructor.
Returns:
The constructed and fully loaded page with the browser set accordingly

getPageBinder

public PageBinder getPageBinder()
Specified by:
getPageBinder in interface TestedProduct<WebDriverTester>
Returns:
The page binder for visiting pages and binding page objects

getProductInstance

public ProductInstance getProductInstance()
Specified by:
getProductInstance in interface TestedProduct<WebDriverTester>
Returns:
Information about the instance being tested

getTester

public WebDriverTester getTester()
Specified by:
getTester in interface TestedProduct<WebDriverTester>
Returns:
The tester being used


Copyright © 2014 Atlassian. All rights reserved.