Package org.xwiki.test.ui.po
Class ChangesPane
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.ChangesPane
-
public class ChangesPane extends BaseElement
Displays the differences between two versions of a document.- Since:
- 4.2M1
- Version:
- $Id: 72e590b82e899c1c1e48ab209daff2338dc30a10 $
-
-
Constructor Summary
Constructors Constructor Description ChangesPane()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclickNextChange()Click the next change buttonvoidclickNextFromVersion()Click the next change button of the original documentvoidclickNextToVersion()Click the next change button of the new documentvoidclickPreviousChange()Click the previous change buttonvoidclickPreviousFromVersion()Click the previous change button of the original documentvoidclickPreviousToVersion()Click the previous change button of the new documentStringgetChangeComment()List<String>getChangedEntities()DocumentDiffSummarygetDiffSummary()EntityDiffgetEntityDiff(String label)StringgetFromVersion()StringgetFromVersionSummary()StringgetToVersion()StringgetToVersionSummary()booleanhasNextChange()booleanhasNextFromVersion()booleanhasNextToVersion()booleanhasNoChanges()booleanhasPreviousChange()booleanhasPreviousFromVersion()booleanhasPreviousToVersion()-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
getFromVersionSummary
public String getFromVersionSummary()
- Returns:
- the summary of the from version
-
getToVersionSummary
public String getToVersionSummary()
- Returns:
- the summary of the to version
-
getChangeComment
public String getChangeComment()
- Returns:
- the comment of the to version
-
hasNoChanges
public boolean hasNoChanges()
- Returns:
trueif the "No changes" message is displayed and there are no diffs displayed,falseotherwise
-
getDiffSummary
public DocumentDiffSummary getDiffSummary()
- Returns:
- the summary for the displayed changes
-
getChangedEntities
public List<String> getChangedEntities()
- Returns:
- the names (labels) for the entities that have been modified (have modified properties)
-
getEntityDiff
public EntityDiff getEntityDiff(String label)
- Parameters:
label- the entity label- Returns:
- the changes for the specified entity
-
clickPreviousChange
public void clickPreviousChange()
Click the previous change button
-
clickNextChange
public void clickNextChange()
Click the next change button
-
clickPreviousFromVersion
public void clickPreviousFromVersion()
Click the previous change button of the original document
-
clickNextFromVersion
public void clickNextFromVersion()
Click the next change button of the original document
-
clickPreviousToVersion
public void clickPreviousToVersion()
Click the previous change button of the new document
-
clickNextToVersion
public void clickNextToVersion()
Click the next change button of the new document
-
hasPreviousChange
public boolean hasPreviousChange()
- Returns:
- the presence of the previous change button
-
hasNextChange
public boolean hasNextChange()
- Returns:
- the presence of the next change button
-
hasPreviousFromVersion
public boolean hasPreviousFromVersion()
- Returns:
- the presence of the previous change button of the original document
-
hasNextFromVersion
public boolean hasNextFromVersion()
- Returns:
- the presence of the next change button of the original document
-
hasPreviousToVersion
public boolean hasPreviousToVersion()
- Returns:
- the presence of the previous change button of the new document
-
hasNextToVersion
public boolean hasNextToVersion()
- Returns:
- the presence of the next change button of the new document
-
getFromVersion
public String getFromVersion()
- Returns:
- the original document version
-
getToVersion
public String getToVersion()
- Returns:
- the new document version
-
-