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 |
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 |
editTabLink |
org.openqa.selenium.WebElement |
historyTabLink |
org.openqa.selenium.WebElement |
manageTabLink |
org.openqa.selenium.WebElement |
summaryTabLink |
org.openqa.selenium.WebElement |
tabsBar |
URLCHANGE_MAX_WAIT, 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 the text: You are logged as
Username
|
AdminCenterBasePage |
getAdminCenter() |
ContentTabSubPage |
getContentTab()
Click on the content tab and return the subpage of this page.
|
ContextualActions |
getContextualActions() |
String |
getCurrentContributors() |
String |
getCurrentDocumentDescription() |
String |
getCurrentDocumentTitle() |
String |
getCurrentFolderishDescription() |
List<String> |
getCurrentStates() |
EditTabSubPage |
getEditTab() |
HistoryTabSubPage |
getHistoryTab() |
ManageTabSubPage |
getManageTab() |
NavigationSubPage |
getNavigationSubPage() |
SummaryTabSubPage |
getSummaryTab() |
WorkspacesContentTabSubPage |
getWorkspacesContentTab()
For workspace type, the content tab is a bit different.
|
DocumentBasePage |
goToDocumentByBreadcrumb(String documentTitle) |
asPage, findElementAndWaitUntilEnabled, findElementAndWaitUntilEnabled, findElementsWithTimeout, findElementWaitUntilEnabledAndClick, findElementWaitUntilEnabledAndClick, findElementWithTimeout, findElementWithTimeout, findElementWithTimeout, findElementWithTimeout, get, getFeedbackMessage, getHeaderLinks, waitUntilEnabled, waitUntilEnabled, waitUntilURLDifferentFrom
public org.openqa.selenium.WebElement tabsBar
public org.openqa.selenium.WebElement contentTabLink
public org.openqa.selenium.WebElement summaryTabLink
public org.openqa.selenium.WebElement editTabLink
public org.openqa.selenium.WebElement historyTabLink
public org.openqa.selenium.WebElement manageTabLink
public org.openqa.selenium.WebElement currentDocumentDescription
public org.openqa.selenium.WebElement currentFolderishDescription
public org.openqa.selenium.WebElement currentDocumentTitle
public org.openqa.selenium.WebElement breadcrumbForm
public org.openqa.selenium.WebElement currentDocumentContributor
public ContextualActions contextualActions
public ContentTabSubPage getContentTab()
public EditTabSubPage getEditTab()
public SummaryTabSubPage getSummaryTab()
public HistoryTabSubPage getHistoryTab()
public ManageTabSubPage getManageTab()
public NavigationSubPage getNavigationSubPage()
public WorkspacesContentTabSubPage getWorkspacesContentTab()
public void checkUserConnected(String username) throws DocumentBasePage.UserNotConnectedException
username
- DocumentBasePage.UserNotConnectedException
public void checkDocTitle(String expectedTitle)
expectedTitle
.expectedTitle
- the expected titlepublic String getCurrentDocumentDescription()
public String getCurrentFolderishDescription()
public String getCurrentDocumentTitle()
public String getCurrentContributors()
public DocumentBasePage goToDocumentByBreadcrumb(String documentTitle)
public AdminCenterBasePage getAdminCenter()
public ContextualActions getContextualActions()
Copyright © 2012 Nuxeo SA. All Rights Reserved.