Package org.xwiki.test.ui.po
Class DeletedPageEntry
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.DeletedPageEntry
-
public class DeletedPageEntry extends BaseElement
Represents a deleted page row in the recycle bin.- Since:
- 14.10
- Version:
- $Id: 9ebb319270aca06f8699af2ac9d80bca65d065db $
-
-
Constructor Summary
Constructors Constructor Description DeletedPageEntry(int rowNumber, boolean isTerminal, org.openqa.selenium.WebElement row)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeDeleted()
boolean
canBeRestored()
boolean
canBeViewed()
DeletePageOutcomePage
clickDelete()
Click on the permanently delete action and bypass the confirm dialog.ViewPage
clickRestore()
Click on the restore action.ViewPage
clickView()
Click on the view link.String
getDeleter()
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Constructor Detail
-
DeletedPageEntry
public DeletedPageEntry(int rowNumber, boolean isTerminal, org.openqa.selenium.WebElement row)
Default constructor.- Parameters:
rowNumber
- the row number in the table.isTerminal
-true
if the page was terminal (so the entry comes from terminal pages table),false
otherwise.row
- the actual web element entry
-
-
Method Detail
-
getDeleter
public String getDeleter()
- Returns:
- the name of the deleter.
-
canBeRestored
public boolean canBeRestored()
- Returns:
true
if the restore link action is available.
-
canBeDeleted
public boolean canBeDeleted()
- Returns:
true
if the delete link action is available.
-
canBeViewed
public boolean canBeViewed()
- Returns:
true
if the view link is available.
-
clickView
public ViewPage clickView()
Click on the view link.- Returns:
- the view page of the deleted page.
-
clickDelete
public DeletePageOutcomePage clickDelete()
Click on the permanently delete action and bypass the confirm dialog.- Returns:
- the
DeletePageOutcomePage
updated.
-
clickRestore
public ViewPage clickRestore()
Click on the restore action.- Returns:
- the view page of the restored page.
-
-