com.atlassian.crowd.pageobjects.pages
Class CrowdRestorePage

java.lang.Object
  extended by com.atlassian.crowd.pageobjects.AbstractCrowdPage
      extended by 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
           
 
Fields inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
binder, driver, finder, footer, pageBinder
 
Constructor Summary
CrowdRestorePage()
           
 
Method Summary
 String getUrl()
           
 CrowdRestorePage restoreExpectingFailure(String filename)
          Restores state from Crowd backup file, expecting a failure.
 CrowdLoginPage restoreExpectingSuccess(String filename)
          Restores state from Crowd backup file.
protected  void waitUntilContentLoad()
          Waits until the content has loaded.
 
Methods inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
getHeader, waitUntilPageLoad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CrowdRestorePage

public CrowdRestorePage()
Method Detail

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.