public class ArchivedVersionsSubPage extends DocumentBasePage
DocumentBasePage.UserNotConnectedException
breadcrumbForm, contentTabLink, contextualActions, currentDocumentContributor, currentDocumentDescription, currentDocumentTitle, currentFolderishDescription, documentManagementLink, editTabLink, historyTabLink, homePageLink, manageTabLink, permissionsTabLink, relationTabLink, searchPageLink, summaryTabLink, tabsBar, userMenuActions, workflowLink
driver, userServicesForm
Constructor and Description |
---|
ArchivedVersionsSubPage(org.openqa.selenium.WebDriver driver) |
Modifier and Type | Method and Description |
---|---|
void |
checkCanExecuteActionOnSelectedVersions(String actionId,
boolean canExecute)
Checks the ability to execute the action identified by
actionId on selected versions. |
void |
checkCanRemoveSelectedVersions(boolean canRemove)
Checks the ability to remove selected versions.
|
<T> T |
executeActionOnSelectedVersions(String actionId,
boolean isConfirm,
Class<T> pageClass,
int findElementTimeout,
int waitUntilEnabledTimeout)
Executes the action identified by
actionId on selected versions. |
DocumentBasePage |
executeActionOnVersion(String versionLabel,
String actionId)
Executes the action identified by
actionId on the version with label versionLabel . |
List<String> |
getVersionLabels()
Gets the version labels.
|
ArchivedVersionsSubPage |
removeSelectedVersions()
Removes the selected versions.
|
DocumentBasePage |
restoreVersion(String versionLabel)
Restores the version with label
versionLabel . |
ArchivedVersionsSubPage |
selectVersion(String versionLabel)
Selects a version given its label.
|
DocumentBasePage |
viewVersion(String versionLabel)
Views the version with label
versionLabel . |
checkDocTitle, checkUserConnected, clickOnDocumentTabLink, clickOnDocumentTabLink, getAddAllToCollectionPopup, getAddToCollectionPopup, getAdminCenter, getBlobActions, getCollectionContentTab, getContentTab, getContentTab, getContextualActions, getCurrentContributors, getCurrentDocumentDescription, getCurrentDocumentTitle, getCurrentFolderishDescription, getCurrentStates, getDocumentManagement, getEditTab, getHistoryTab, getManageTab, getNavigationSubPage, getPermissionsTab, getRelationTab, getSummaryTab, getUserHome, getWorkflow, getWorkspacesContentTab, goToDocumentByBreadcrumb, goToHomePage, goToSearchPage, goToWorkspaces, isAddToCollectionUpperActionAvailable, isMainTabSelected, popupUserMenuActions, switchToDocumentBase, switchToPersonalWorkspace
asPage, clickOnTabIfNotSelected, clickOnTabIfNotSelected, clickOnTabIfNotSelected, findElementAndWaitUntilEnabled, findElementAndWaitUntilEnabled, findElementsWithTimeout, findElementWaitUntilEnabledAndClick, findElementWaitUntilEnabledAndClick, findElementWithTimeout, findElementWithTimeout, findElementWithTimeout, findElementWithTimeout, get, getErrorFeedbackMessage, getFancyBoxContent, getFeedbackMessage, getHeaderLinks, getWebFragment, getWebFragment, hasElement, selectItemInDropDownMenu, switchToFrame, useAjaxTabs, waitUntilEnabled, waitUntilURLDifferentFrom
public ArchivedVersionsSubPage(org.openqa.selenium.WebDriver driver)
public List<String> getVersionLabels()
public ArchivedVersionsSubPage selectVersion(String versionLabel)
versionLabel
- the version labelpublic void checkCanRemoveSelectedVersions(boolean canRemove)
canRemove
- true to check if can remove selected versionspublic void checkCanExecuteActionOnSelectedVersions(String actionId, boolean canExecute)
actionId
on selected versions.actionId
- the action idcanExecute
- true to check if can execute action identified by actionId
on selected versionspublic ArchivedVersionsSubPage removeSelectedVersions()
public <T> T executeActionOnSelectedVersions(String actionId, boolean isConfirm, Class<T> pageClass, int findElementTimeout, int waitUntilEnabledTimeout)
actionId
on selected versions.T
- the generic type of the page to returnactionId
- the action idisConfirm
- true if the action needs a javascript confirmpageClass
- the class of the page to returnfindElementTimeout
- the find element timeout in millisecondswaitUntilEnabledTimeout
- the wait until enabled timeout in millisecondspublic DocumentBasePage viewVersion(String versionLabel)
versionLabel
.versionLabel
- the version labelpublic DocumentBasePage restoreVersion(String versionLabel)
versionLabel
.versionLabel
- the version labelpublic DocumentBasePage executeActionOnVersion(String versionLabel, String actionId)
actionId
on the version with label versionLabel
.versionLabel
- the version labelactionId
- the action idCopyright © 2015 Nuxeo SA. All rights reserved.