com.atlassian.confluence.pageobjects
Class ConfluenceTestedProduct
java.lang.Object
com.atlassian.confluence.pageobjects.ConfluenceTestedProduct
- All Implemented Interfaces:
- com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
public class ConfluenceTestedProduct
- extends java.lang.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 |
<M extends com.atlassian.pageobjects.Page>
M |
|
autoLoginEmbeddingCredentialsInUrl(User user,
java.lang.Class<M> destinationClass,
java.lang.Object... args)
Faster way of login when in testing environment by embedding the credentials in the url,
so we don't have to visit the login page every single time. |
void |
clearLocalStorage()
|
void |
deleteAllCookies()
|
void |
deleteCookieNamed(java.lang.String name)
|
org.openqa.selenium.Cookie |
getCookieNamed(java.lang.String name)
|
com.atlassian.pageobjects.PageBinder |
getPageBinder()
|
com.atlassian.pageobjects.ProductInstance |
getProductInstance()
|
com.atlassian.webdriver.pageobjects.WebDriverTester |
getTester()
|
ConfluenceAdminHomePage |
gotoAdminHomePage()
|
DashboardPage |
gotoHomePage()
|
ConfluenceLoginPage |
gotoLoginPage()
|
java.lang.Boolean |
isCookiePresent(java.lang.String name)
|
<M extends com.atlassian.pageobjects.Page>
M |
|
login(User user,
java.lang.Class<M> destination,
java.lang.Object... args)
|
CopyPage |
loginAndCopyPage(User user,
Page page)
|
CreateBlog |
loginAndCreateBlog(User user,
Space space)
|
CreatePage |
loginAndCreatePage(User user,
Space space)
|
EditContentPage |
loginAndEdit(User user,
BlogPost blog)
|
EditContentPage |
loginAndEdit(User user,
Page page)
|
EditRestrictedPage |
loginAndEditRestricted(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(java.lang.String pageId)
|
PageInfo |
viewPageInfo(long pageId)
|
<P extends com.atlassian.pageobjects.Page>
P |
|
visit(java.lang.Class<P> pageClass,
java.lang.Object... args)
|
<P extends com.atlassian.pageobjects.Page>
P |
|
visitExternal(java.lang.Class<P> pageClass,
java.lang.Object... args)
|
com.atlassian.pageobjects.page.LoginPage |
visitPageExpectingLogin(java.lang.Class<? extends com.atlassian.pageobjects.Page> destination,
java.lang.Object... args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceTestedProduct
public ConfluenceTestedProduct(com.atlassian.pageobjects.TestedProductFactory.TesterFactory<com.atlassian.webdriver.pageobjects.WebDriverTester> testerFactory,
com.atlassian.pageobjects.ProductInstance productInstance)
gotoHomePage
public DashboardPage gotoHomePage()
visitPageExpectingLogin
public com.atlassian.pageobjects.page.LoginPage visitPageExpectingLogin(java.lang.Class<? extends com.atlassian.pageobjects.Page> destination,
java.lang.Object... args)
gotoAdminHomePage
public ConfluenceAdminHomePage gotoAdminHomePage()
gotoLoginPage
public ConfluenceLoginPage gotoLoginPage()
login
public <M extends com.atlassian.pageobjects.Page> M login(User user,
java.lang.Class<M> destination,
java.lang.Object... args)
autoLoginEmbeddingCredentialsInUrl
public <M extends com.atlassian.pageobjects.Page> M autoLoginEmbeddingCredentialsInUrl(User user,
java.lang.Class<M> destinationClass,
java.lang.Object... args)
- Faster way of login when in testing environment by embedding the credentials in the url,
so we don't have to visit the login page every single time.
- Type Parameters:
M
- - Parameters:
user
- destinationClass
- args
-
- Returns:
loginAndEdit
public EditContentPage loginAndEdit(User user,
BlogPost blog)
loginAndEdit
public EditContentPage loginAndEdit(User user,
Page page)
loginAndCreatePage
public CreatePage loginAndCreatePage(User user,
Space space)
loginAndCopyPage
public CopyPage loginAndCopyPage(User user,
Page page)
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(java.lang.String name)
getCookieNamed
public org.openqa.selenium.Cookie getCookieNamed(java.lang.String name)
isCookiePresent
public java.lang.Boolean isCookiePresent(java.lang.String name)
clearLocalStorage
public void clearLocalStorage()
visitExternal
public <P extends com.atlassian.pageobjects.Page> P visitExternal(java.lang.Class<P> pageClass,
java.lang.Object... args)
visit
public <P extends com.atlassian.pageobjects.Page> P visit(java.lang.Class<P> pageClass,
java.lang.Object... args)
- Specified by:
visit
in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
viewPageInfo
public PageInfo viewPageInfo(long pageId)
viewPage
public ViewPage viewPage(java.lang.String pageId)
loginAndViewRestricted
public ViewRestrictedPage loginAndViewRestricted(User user,
Page page)
loginAndEditRestricted
public EditRestrictedPage loginAndEditRestricted(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 WebElement
s become stale, so make sure you either use PageElement
s or
re-locate them after calling this method.
- See Also:
ElementBy
,
PageElementFinder
Copyright © 2003-2013 Atlassian. All Rights Reserved.