Package org.xwiki.test.ui.po
Class HistoryPane
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- 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: 62e438527f71580a940ece60c20914d646ac1f79 $
-
-
Constructor Summary
Constructors Constructor Description HistoryPane()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparePage
compare(String fromVersion, String toVersion)
Selects the specified document versions and clicks the button to compare them.HistoryPane
deleteRangeVersions(String fromVersion, String toVersion)
HistoryPane
deleteVersion(String version)
String
getCurrentAuthor()
String
getCurrentVersion()
String
getCurrentVersionComment()
boolean
hasVersionWithSummary(String summary)
boolean
isOpened()
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.ViewPage
viewVersion(String version)
View the document at the given version.-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
isOpened
public boolean isOpened()
-
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).
-
viewVersion
public ViewPage viewVersion(String version)
View the document at the given version.- Parameters:
version
- the version to view- Returns:
- the viewpage
- Since:
- 14.10.7, 15.2RC1
-
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
-
deleteRangeVersions
public HistoryPane deleteRangeVersions(String fromVersion, String toVersion)
-
compare
public ComparePage compare(String fromVersion, String toVersion)
Selects the specified document versions and clicks the button to compare them.- Parameters:
fromVersion
- the from versiontoVersion
- the to version- Returns:
- the page that shows the differences between the selected pages
-
-