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 void
clickNextChange()
Click the next change buttonvoid
clickNextFromVersion()
Click the next change button of the original documentvoid
clickNextToVersion()
Click the next change button of the new documentvoid
clickPreviousChange()
Click the previous change buttonvoid
clickPreviousFromVersion()
Click the previous change button of the original documentvoid
clickPreviousToVersion()
Click the previous change button of the new documentString
getChangeComment()
List<String>
getChangedEntities()
DocumentDiffSummary
getDiffSummary()
EntityDiff
getEntityDiff(String label)
String
getFromVersion()
String
getFromVersionSummary()
String
getToVersion()
String
getToVersionSummary()
boolean
hasNextChange()
boolean
hasNextFromVersion()
boolean
hasNextToVersion()
boolean
hasNoChanges()
boolean
hasPreviousChange()
boolean
hasPreviousFromVersion()
boolean
hasPreviousToVersion()
-
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:
true
if the "No changes" message is displayed and there are no diffs displayed,false
otherwise
-
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
-
-