public class DocumentBasePage extends AbstractPage
Modifier and Type | Class and Description |
---|---|
class |
DocumentBasePage.UserNotConnectedException
Exception occurred a user is expected to be connected but it isn't.
|
Modifier and Type | Field and Description |
---|---|
org.openqa.selenium.WebElement |
breadcrumbForm |
org.openqa.selenium.WebElement |
commentsTabLink |
org.openqa.selenium.WebElement |
contentTabLink |
ContextualActions |
contextualActions |
org.openqa.selenium.WebElement |
currentDocumentContributor |
org.openqa.selenium.WebElement |
currentDocumentDescription |
org.openqa.selenium.WebElement |
currentDocumentTitle |
org.openqa.selenium.WebElement |
currentFolderishDescription |
org.openqa.selenium.WebElement |
documentManagementLink |
org.openqa.selenium.WebElement |
editTabLink |
org.openqa.selenium.WebElement |
filesTabLink |
org.openqa.selenium.WebElement |
forumTabLink |
org.openqa.selenium.WebElement |
historyTabLink |
org.openqa.selenium.WebElement |
homePageLink |
org.openqa.selenium.WebElement |
manageTabLink |
org.openqa.selenium.WebElement |
permissionsTabLink |
org.openqa.selenium.WebElement |
publishTabLink |
org.openqa.selenium.WebElement |
relationTabLink |
org.openqa.selenium.WebElement |
searchPageLink |
org.openqa.selenium.WebElement |
summaryTabLink |
org.openqa.selenium.WebElement |
tabsBar |
org.openqa.selenium.WebElement |
topicTabLink |
org.openqa.selenium.WebElement |
userMenuActions |
org.openqa.selenium.WebElement |
workflowLink |
driver, userServicesForm
Constructor and Description |
---|
DocumentBasePage(org.openqa.selenium.WebDriver driver) |
Modifier and Type | Method and Description |
---|---|
void |
checkDocTitle(String expectedTitle)
Check if the title of the current document page is equal to the
expectedTitle . |
void |
checkUserConnected(String username)
Check if the user is connected by looking for an element with the
username as a class. |
static void |
clickOnBreadcrumbElement(org.openqa.selenium.WebDriver driver,
String documentTitle)
Clicks on a breadcrumb element.
|
void |
clickOnDocumentTabLink(org.openqa.selenium.WebElement tabLink) |
void |
clickOnDocumentTabLink(org.openqa.selenium.WebElement tabLink,
boolean useAjax)
Clicks on given tab element, detecting begin and end of potential ajax request.
|
CollectionContentTabSubPage |
createCollection(String collectionsTitle,
String fileDescription)
Creates a Collection from this page.
|
DocumentBasePage |
createCollections(String collectionsTitle,
String fileDescription)
Creates a Collections container from this page.
|
FileDocumentBasePage |
createFile(String fileTitle,
String fileDescription,
boolean uploadBlob,
String filePrefix,
String fileSuffix,
String fileContent)
Creates a File from this page.
|
FolderDocumentBasePage |
createFolder(String folderTitle,
String folderDescription) |
ForumTabSubPage |
createForum(String forumTitle,
String forumDescription)
Creates a forum on this page.
|
NoteDocumentBasePage |
createNote(String noteTitle,
String noteDescription,
boolean defineNote,
String noteContent)
Creates a Note from this page.
|
DocumentBasePage |
createSection(String sectionTitle,
String sectionDescription)
Creates a Section from this page.
|
DocumentBasePage |
createWorkspace(String workspaceTitle,
String workspaceDescription)
Creates a Workspace from this page.
|
void |
deleteWorkspace(String workspaceTitle)
Deletes the Workspace with title
workspaceTitle from this page. |
AddAllToCollectionForm |
getAddAllToCollectionPopup() |
AddToCollectionForm |
getAddToCollectionPopup() |
AdminCenterBasePage |
getAdminCenter() |
List<org.openqa.selenium.WebElement> |
getBlobActions(int index) |
CollectionContentTabSubPage |
getCollectionContentTab() |
CommentsTabSubPage |
getCommentsTab() |
ContentTabSubPage |
getContentTab()
Click on the content tab and return the subpage of this page.
|
<T> T |
getContentTab(Class<T> tabClass) |
ContextualActions |
getContextualActions() |
String |
getCurrentContributors() |
String |
getCurrentDocumentDescription() |
String |
getCurrentDocumentTitle() |
String |
getCurrentFolderishDescription() |
List<String> |
getCurrentStates() |
DocumentBasePage |
getDocumentManagement()
Deprecated.
since 7.3: use
goToWorkspaces() instead |
EditTabSubPage |
getEditTab() |
<T extends EditTabSubPage> |
getEditTab(Class<T> tabClass) |
FilesTabSubPage |
getFilesTab() |
ForumTabSubPage |
getForumTab() |
HistoryTabSubPage |
getHistoryTab() |
ManageTabSubPage |
getManageTab() |
NavigationSubPage |
getNavigationSubPage() |
PermissionsSubPage |
getPermissionsTab() |
PublishTabSubPage |
getPublishTab() |
RelationTabSubPage |
getRelationTab() |
SummaryTabSubPage |
getSummaryTab() |
TopicTabSubPage |
getTopicTab() |
UserHomePage |
getUserHome() |
WorkflowTabSubPage |
getWorkflow() |
WorkspacesContentTabSubPage |
getWorkspacesContentTab()
For workspace type, the content tab is a bit different.
|
DocumentBasePage |
goToDocumentByBreadcrumb(String documentTitle) |
HomePage |
goToHomePage() |
SearchPage |
goToSearchPage() |
WorkspaceHomePage |
goToWorkspaces() |
boolean |
hasEditTab() |
boolean |
hasFilesTab() |
boolean |
hasManageTab() |
boolean |
hasNewButton(boolean isSection) |
boolean |
hasNewPermissionsButton() |
boolean |
hasNewRelationLink() |
boolean |
isAddToCollectionUpperActionAvailable() |
boolean |
isMainTabSelected(org.openqa.selenium.WebElement tab)
Returns true if given element representing a main tab is selected in UI.
|
static void |
makeBreadcrumbUsable(org.openqa.selenium.WebDriver driver)
Makes a breadcrumb element usable, to workaround issues in tests when resolution is too small, see NXP-19710.
|
void |
popupUserMenuActions() |
DocumentBasePage |
switchToDocumentBase() |
DocumentBasePage |
switchToPersonalWorkspace() |
asPage, clickOnTabIfNotSelected, clickOnTabIfNotSelected, clickOnTabIfNotSelected, closeFancyBox, findElementAndWaitUntilEnabled, findElementAndWaitUntilEnabled, findElementsWithTimeout, findElementWaitUntilEnabledAndClick, findElementWaitUntilEnabledAndClick, findElementWithTimeout, findElementWithTimeout, findElementWithTimeout, findElementWithTimeout, get, getErrorFeedbackMessage, getFancyBoxContent, getFeedbackMessage, getFeedbackMessage, getHeaderLinks, getInfoFeedbackMessage, getWebFragment, getWebFragment, hasElement, selectItemInDropDownMenu, switchToFrame, useAjaxTabs, waitForFancyBoxClosed, waitUntilEnabled, waitUntilEnabled, waitUntilEnabledAndClick, waitUntilEnabledAndClick, waitUntilURLDifferentFrom
public org.openqa.selenium.WebElement breadcrumbForm
public org.openqa.selenium.WebElement contentTabLink
public ContextualActions contextualActions
public org.openqa.selenium.WebElement currentDocumentContributor
public org.openqa.selenium.WebElement currentDocumentDescription
public org.openqa.selenium.WebElement currentDocumentTitle
public org.openqa.selenium.WebElement currentFolderishDescription
public org.openqa.selenium.WebElement documentManagementLink
public org.openqa.selenium.WebElement editTabLink
public org.openqa.selenium.WebElement filesTabLink
public org.openqa.selenium.WebElement permissionsTabLink
public org.openqa.selenium.WebElement historyTabLink
public org.openqa.selenium.WebElement manageTabLink
public org.openqa.selenium.WebElement relationTabLink
public org.openqa.selenium.WebElement summaryTabLink
public org.openqa.selenium.WebElement publishTabLink
public org.openqa.selenium.WebElement commentsTabLink
public org.openqa.selenium.WebElement forumTabLink
public org.openqa.selenium.WebElement topicTabLink
public org.openqa.selenium.WebElement tabsBar
public org.openqa.selenium.WebElement workflowLink
public org.openqa.selenium.WebElement userMenuActions
public org.openqa.selenium.WebElement homePageLink
public org.openqa.selenium.WebElement searchPageLink
public DocumentBasePage(org.openqa.selenium.WebDriver driver)
public void checkDocTitle(String expectedTitle)
expectedTitle
.expectedTitle
- the expected titlepublic void checkUserConnected(String username) throws DocumentBasePage.UserNotConnectedException
username
as a class.username
- the usernameDocumentBasePage.UserNotConnectedException
public void clickOnDocumentTabLink(org.openqa.selenium.WebElement tabLink)
public void clickOnDocumentTabLink(org.openqa.selenium.WebElement tabLink, boolean useAjax)
public AdminCenterBasePage getAdminCenter()
public ContentTabSubPage getContentTab()
public <T> T getContentTab(Class<T> tabClass)
public CollectionContentTabSubPage getCollectionContentTab()
public ContextualActions getContextualActions()
public List<org.openqa.selenium.WebElement> getBlobActions(int index)
public String getCurrentContributors()
public String getCurrentDocumentDescription()
public String getCurrentDocumentTitle()
public String getCurrentFolderishDescription()
public List<String> getCurrentStates()
@Deprecated public DocumentBasePage getDocumentManagement()
goToWorkspaces()
insteadpublic EditTabSubPage getEditTab()
public <T extends EditTabSubPage> T getEditTab(Class<T> tabClass)
public FilesTabSubPage getFilesTab()
public PermissionsSubPage getPermissionsTab()
public HistoryTabSubPage getHistoryTab()
public ManageTabSubPage getManageTab()
public NavigationSubPage getNavigationSubPage()
public RelationTabSubPage getRelationTab()
public SummaryTabSubPage getSummaryTab()
public CommentsTabSubPage getCommentsTab()
public ForumTabSubPage getForumTab()
public TopicTabSubPage getTopicTab()
public PublishTabSubPage getPublishTab()
public UserHomePage getUserHome()
public WorkflowTabSubPage getWorkflow()
public WorkspacesContentTabSubPage getWorkspacesContentTab()
public DocumentBasePage goToDocumentByBreadcrumb(String documentTitle)
public static void makeBreadcrumbUsable(org.openqa.selenium.WebDriver driver)
public static void clickOnBreadcrumbElement(org.openqa.selenium.WebDriver driver, String documentTitle)
public AddToCollectionForm getAddToCollectionPopup()
public AddAllToCollectionForm getAddAllToCollectionPopup()
public boolean isAddToCollectionUpperActionAvailable()
public void popupUserMenuActions()
public DocumentBasePage switchToPersonalWorkspace()
public DocumentBasePage switchToDocumentBase()
public HomePage goToHomePage()
public SearchPage goToSearchPage()
public WorkspaceHomePage goToWorkspaces()
public boolean isMainTabSelected(org.openqa.selenium.WebElement tab)
public DocumentBasePage createWorkspace(String workspaceTitle, String workspaceDescription)
workspaceTitle
- the workspace titleworkspaceDescription
- the workspace descriptionpublic DocumentBasePage createSection(String sectionTitle, String sectionDescription)
sectionTitle
- the section titlesectionDescription
- the section descriptionpublic void deleteWorkspace(String workspaceTitle)
workspaceTitle
from this page.workspaceTitle
- the workspace titlepublic FolderDocumentBasePage createFolder(String folderTitle, String folderDescription)
public FileDocumentBasePage createFile(String fileTitle, String fileDescription, boolean uploadBlob, String filePrefix, String fileSuffix, String fileContent) throws IOException
fileTitle
- the file titlefileDescription
- the file descriptionuploadBlob
- true if a blob needs to be uploaded (temporary file created for this purpose)filePrefix
- the file prefixfileSuffix
- the file suffixfileContent
- the file contentIOException
- if temporary file creation failspublic DocumentBasePage createCollections(String collectionsTitle, String fileDescription)
collectionsTitle
- the Collections container titlefileDescription
- the collections descriptionpublic CollectionContentTabSubPage createCollection(String collectionsTitle, String fileDescription)
collectionsTitle
- the Collections container titlefileDescription
- the collection descriptionpublic NoteDocumentBasePage createNote(String noteTitle, String noteDescription, boolean defineNote, String noteContent) throws IOException
noteTitle
- the note titlenoteDescription
- the note descriptiondefineNote
- true if the content of the note needs to be definednoteContent
- the content of the noteIOException
public ForumTabSubPage createForum(String forumTitle, String forumDescription)
forumTitle
- the forum titleforumDescription
- the forum descriptionpublic boolean hasNewRelationLink()
public boolean hasFilesTab()
public boolean hasNewButton(boolean isSection)
public boolean hasEditTab()
public boolean hasNewPermissionsButton()
public boolean hasManageTab()
Copyright © 2016 Nuxeo SA. All rights reserved.