public class ArchivedVersionsSubPage extends DocumentBasePage
DocumentBasePage.UserNotConnectedException
breadcrumbForm, commentsTabLink, contentTabLink, contextualActions, currentDocumentContributor, currentDocumentDescription, currentDocumentTitle, currentFolderishDescription, documentManagementLink, editTabLink, filesTabLink, forumTabLink, historyTabLink, homePageLink, manageTabLink, permissionsTabLink, publishTabLink, relationTabLink, searchPageLink, summaryTabLink, tabsBar, topicTabLink, 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 . |
String |
getDocumentVersionsText() |
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, clickOnBreadcrumbElement, clickOnDocumentTabLink, clickOnDocumentTabLink, createCollection, createCollections, createFile, createFolder, createForum, createNote, createSection, createWorkspace, deleteWorkspace, getAddAllToCollectionPopup, getAddToCollectionPopup, getAdminCenter, getBlobActions, getCollectionContentTab, getCommentsTab, getContentTab, getContentTab, getContextualActions, getCurrentContributors, getCurrentDocumentDescription, getCurrentDocumentTitle, getCurrentFolderishDescription, getCurrentStates, getDocumentManagement, getEditTab, getEditTab, getFilesTab, getForumTab, getHistoryTab, getManageTab, getNavigationSubPage, getPermissionsTab, getPublishTab, getRelationTab, getSummaryTab, getTopicTab, getUserHome, getWorkflow, getWorkspacesContentTab, goToDocumentByBreadcrumb, goToHomePage, goToSearchPage, goToWorkspaces, hasEditTab, hasFilesTab, hasManageTab, hasNewButton, hasNewPermissionsButton, hasNewRelationLink, isAddToCollectionUpperActionAvailable, isMainTabSelected, makeBreadcrumbUsable, popupUserMenuActions, switchToDocumentBase, switchToPersonalWorkspace
asPage, clickOnTabIfNotSelected, clickOnTabIfNotSelected, clickOnTabIfNotSelected, closeFancyBox, findElementAndWaitUntilEnabled, findElementAndWaitUntilEnabled, findElementsWithTimeout, findElementWaitUntilEnabledAndClick, findElementWaitUntilEnabledAndClick, findElementWaitUntilEnabledAndClick, findElementWithTimeout, findElementWithTimeout, findElementWithTimeout, findElementWithTimeout, get, getErrorFeedbackMessage, getFancyBoxContent, getFeedbackMessage, getHeaderLinks, getInfoFeedbackMessage, getWebFragment, getWebFragment, hasElement, selectItemInDropDownMenu, switchToFrame, useAjaxTabs, waitForFancyBoxClosed, waitUntilEnabled, waitUntilEnabled, waitUntilEnabledAndClick, waitUntilEnabledAndClick, 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 idpublic String getDocumentVersionsText()
Copyright © 2018 Nuxeo. All rights reserved.