Class 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: a4907409f3a83ffb671eb395ccf9c0fea13cb3e3 $
    • Constructor Detail

      • HistoryPane

        public HistoryPane()
    • 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
      • 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
      • getNumberOfVersions

        public int getNumberOfVersions()
        Returns:
        the total number of versions contained in the history as returned by the live table
        Since:
        14.10.17, 15.5.3, 15.8RC1
      • hasVersion

        public boolean hasVersion​(String version)
        Returns:
        true if the requested version is currently displayed in the history
        Since:
        14.10.17, 15.5.3, 15.8RC1