org.xwiki.test.ui.po
Class HistoryPane

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.HistoryPane

public class HistoryPane
extends BaseElement

Represents the actions possible on the History Pane at the bottom of a page.

Since:
3.2M3
Version:
$Id: 671660a9530989c9a7571f6b86af3506552c4788 $

Constructor Summary
HistoryPane()
           
 
Method Summary
 ComparePage compare(String fromVersion, String toVersion)
          Selects the specified document versions and clicks the button to compare them.
 HistoryPane deleteVersion(String version)
           
 String getCurrentAuthor()
           
 String getCurrentVersion()
           
 String getCurrentVersionComment()
           
 boolean hasVersionWithSummary(String summary)
           
 ViewPage rollbackToVersion(String version)
          IMPORTANT: this method isn't blocking and doesn't wait for the page to be loaded (after the confirmation popup has been accepted).
 HistoryPane showMinorEdits()
          Clicks on the 'Show Minor Edits' button.
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryPane

public HistoryPane()
Method Detail

hasVersionWithSummary

public boolean hasVersionWithSummary(String summary)

getCurrentVersion

public String getCurrentVersion()

getCurrentVersionComment

public String getCurrentVersionComment()

getCurrentAuthor

public String getCurrentAuthor()

rollbackToVersion

public ViewPage rollbackToVersion(String version)
IMPORTANT: this method isn't blocking and doesn't wait for the page to be loaded (after the confirmation popup has been accepted).


deleteVersion

public HistoryPane deleteVersion(String version)

showMinorEdits

public HistoryPane showMinorEdits()
Clicks on the 'Show Minor Edits' button.

Returns:
the new history pane that includes the minor edits

compare

public ComparePage compare(String fromVersion,
                           String toVersion)
Selects the specified document versions and clicks the button to compare them.

Parameters:
fromVersion - the from version
toVersion - the to version
Returns:
the page that shows the differences between the selected pages


Copyright © 2004-2013 XWiki. All Rights Reserved.