com.atlassian.confluence.pageobjects
Class ConfluenceTestedProduct

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

public class ConfluenceTestedProduct
extends Object
implements com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>


Constructor Summary
ConfluenceTestedProduct(com.atlassian.pageobjects.TestedProductFactory.TesterFactory<com.atlassian.webdriver.pageobjects.WebDriverTester> testerFactory, com.atlassian.pageobjects.ProductInstance productInstance)
           
 
Method Summary
 void deleteAllCookies()
           
 void deleteCookieNamed(String name)
           
 org.openqa.selenium.Cookie getCookieNamed(String name)
           
 com.atlassian.pageobjects.PageBinder getPageBinder()
           
 com.atlassian.pageobjects.ProductInstance getProductInstance()
           
 com.atlassian.webdriver.pageobjects.WebDriverTester getTester()
           
 ConfluenceAdminHomePage gotoAdminHomePage()
           
 DashboardPage gotoHomePage()
           
 ConfluenceLoginPage gotoLoginPage()
           
 Boolean isCookiePresent(String name)
           
<M extends com.atlassian.pageobjects.Page>
M
login(User user, Class<M> destination, Object... args)
           
 CreateBlog loginAndCreateBlog(User user, Space space)
           
 CreatePage loginAndCreatePage(User user, Space space)
           
 EditContentPage loginAndEdit(User user, BlogPost blog)
           
 EditContentPage loginAndEdit(User user, Page page)
           
 ViewPage loginAndView(User user, BlogPost blogPost)
           
 ViewPage loginAndView(User user, Page page)
           
 ViewRestrictedPage loginAndViewRestricted(User user, Page page)
           
 LogoutPage logOut()
           
 ConfluenceTestedProduct refresh()
          Make the underlying driver refresh the current page, e.g.
 ViewPage viewPage(String pageId)
           
<P extends com.atlassian.pageobjects.Page>
P
visit(Class<P> pageClass, Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceTestedProduct

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

gotoHomePage

public DashboardPage gotoHomePage()

gotoAdminHomePage

public ConfluenceAdminHomePage gotoAdminHomePage()

gotoLoginPage

public ConfluenceLoginPage gotoLoginPage()

login

public <M extends com.atlassian.pageobjects.Page> M login(User user,
                                                          Class<M> destination,
                                                          Object... args)

loginAndEdit

public EditContentPage loginAndEdit(User user,
                                    BlogPost blog)

loginAndEdit

public EditContentPage loginAndEdit(User user,
                                    Page page)

loginAndCreatePage

public CreatePage loginAndCreatePage(User user,
                                     Space space)

loginAndCreateBlog

public CreateBlog loginAndCreateBlog(User user,
                                     Space space)

loginAndView

public ViewPage loginAndView(User user,
                             Page page)

loginAndView

public ViewPage loginAndView(User user,
                             BlogPost blogPost)

logOut

public LogoutPage logOut()

deleteAllCookies

public void deleteAllCookies()

deleteCookieNamed

public void deleteCookieNamed(String name)

getCookieNamed

public org.openqa.selenium.Cookie getCookieNamed(String name)

isCookiePresent

public Boolean isCookiePresent(String name)

visit

public <P extends com.atlassian.pageobjects.Page> P visit(Class<P> pageClass,
                                                          Object... args)
Specified by:
visit in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>

viewPage

public ViewPage viewPage(String pageId)

loginAndViewRestricted

public ViewRestrictedPage loginAndViewRestricted(User user,
                                                 Page page)

getPageBinder

public com.atlassian.pageobjects.PageBinder getPageBinder()
Specified by:
getPageBinder in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>

getProductInstance

public com.atlassian.pageobjects.ProductInstance getProductInstance()
Specified by:
getProductInstance in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>

getTester

public com.atlassian.webdriver.pageobjects.WebDriverTester getTester()
Specified by:
getTester in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>

refresh

public ConfluenceTestedProduct refresh()
Make the underlying driver refresh the current page, e.g. you change some config over XML-RPC.

Be aware that all your WebElements become stale, so make sure you either use PageElements or re-locate them after calling this method.

See Also:
ElementBy, PageElementFinder


Copyright © 2003-2013 Atlassian. All Rights Reserved.