com.atlassian.crowd.pageobjects.pages
Class CrowdRestorePage
java.lang.Object
com.atlassian.crowd.pageobjects.AbstractCrowdPage
com.atlassian.crowd.pageobjects.pages.CrowdRestorePage
- All Implemented Interfaces:
- com.atlassian.pageobjects.Page
public class CrowdRestorePage
- extends AbstractCrowdPage
Field Summary |
protected com.atlassian.pageobjects.elements.PageElement |
errorBox
|
protected com.atlassian.pageobjects.elements.PageElement |
filePathTextBox
|
protected com.atlassian.pageobjects.elements.PageElement |
submitButton
|
protected com.atlassian.pageobjects.elements.PageElement |
title
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filePathTextBox
protected com.atlassian.pageobjects.elements.PageElement filePathTextBox
submitButton
protected com.atlassian.pageobjects.elements.PageElement submitButton
title
protected com.atlassian.pageobjects.elements.PageElement title
errorBox
protected com.atlassian.pageobjects.elements.PageElement errorBox
CrowdRestorePage
public CrowdRestorePage()
waitUntilContentLoad
protected void waitUntilContentLoad()
- Description copied from class:
AbstractCrowdPage
- Waits until the content has loaded. Used in
AbstractCrowdPage.waitUntilPageLoad()
. Subclasses should override this
method to wait for a distinguishing content to appear. E.g. a page title.
- Overrides:
waitUntilContentLoad
in class AbstractCrowdPage
getUrl
public String getUrl()
restoreExpectingSuccess
public CrowdLoginPage restoreExpectingSuccess(String filename)
- Restores state from Crowd backup file. The current user will be logged out.
The method waits until the login page is displayed.
- Parameters:
filename
- the backup filename. It is a full path, including directory names.
- Returns:
- CrowdLoginPage the binded login page. A runtime exception is thrown if the import wasn't successful.
restoreExpectingFailure
public CrowdRestorePage restoreExpectingFailure(String filename)
- Restores state from Crowd backup file, expecting a failure.
The method waits until the error message appears.
- Parameters:
filename
- the backup filename. It is a full path, including directory names.
- Returns:
- CrowdRestorePage the 'restore' page which displays the error. A runtime exception is thrown if the import was indeed successful.
Copyright © 2013 Atlassian. All Rights Reserved.