com.atlassian.webdriver.confluence
Class ConfluenceTestedProduct

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

public class ConfluenceTestedProduct
extends Object
implements TestedProduct<WebDriverTester>


Constructor Summary
ConfluenceTestedProduct(TestedProductFactory.TesterFactory<WebDriverTester> testerFactory, ProductInstance productInstance)
           
 
Method Summary
 String getLoggedInPassword()
           
 String getLoggedInUsername()
           
 PageBinder getPageBinder()
           
 ProductInstance getProductInstance()
           
 WebDriverTester getTester()
           
 ConfluenceAdminHomePage gotoAdminHomePage()
           
 DashboardPage gotoHomePage()
           
 ConfluenceLoginPage gotoLoginPage()
           
 void setLoggedInUser(String loggedInUsername, String password)
           
<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

ConfluenceTestedProduct

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

gotoHomePage

public DashboardPage gotoHomePage()

gotoAdminHomePage

public ConfluenceAdminHomePage gotoAdminHomePage()

gotoLoginPage

public ConfluenceLoginPage 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

getLoggedInUsername

public String getLoggedInUsername()

getLoggedInPassword

public String getLoggedInPassword()

setLoggedInUser

public void setLoggedInUser(String loggedInUsername,
                            String password)


Copyright © 2014 Atlassian. All rights reserved.