public class ViewPage extends BasePage
Constructor and Description |
---|
ViewPage() |
Modifier and Type | Method and Description |
---|---|
ViewPage |
clickBreadcrumbLink(String linkText)
Clicks on the breadcrumb link with the given text.
|
void |
clickWantedLink(org.xwiki.model.reference.EntityReference reference,
boolean waitForTemplateDisplay)
Clicks on a wanted link in the page.
|
void |
clickWantedLink(String spaceName,
String pageName,
boolean waitForTemplateDisplay)
Clicks on a wanted link in the page.
|
boolean |
contentContainsElement(org.openqa.selenium.By elementLocator) |
WYSIWYGEditPage |
editSection(int sectionNumber) |
boolean |
exists() |
BreadcrumbElement |
getBreadcrumb() |
String |
getBreadcrumbContent() |
String |
getContent() |
String |
getPageBackgroundColor() |
String |
getTitleColor() |
String |
getTitleFontFamily() |
org.openqa.selenium.WebElement |
getTranslateButton() |
boolean |
hasBreadcrumbContent(String breadcrumbItem,
boolean isCurrent) |
boolean |
hasBreadcrumbContent(String breadcrumbItem,
boolean isCurrent,
boolean withLink) |
boolean |
hasTranslateButton() |
boolean |
isInlinePage() |
AttachmentsPane |
openAttachmentsDocExtraPane() |
CommentsTab |
openCommentsDocExtraPane()
Opens the comments tab.
|
HistoryPane |
openHistoryDocExtraPane() |
InformationPane |
openInformationDocExtraPane() |
void |
scrollToTop()
Instantaneously scrolls to the top of the screen.
|
AttachmentsPane |
useShortcutKeyForAttachmentPane() |
CommentsTab |
useShortcutKeyForCommentPane() |
HistoryPane |
useShortcutKeyForHistoryPane() |
InformationPane |
useShortcutKeyForInformationPane() |
void |
waitForDocExtraPaneActive(String paneId) |
void |
waitUntilContent(String expectedValue)
Waits until the page has the passed content by refreshing the page
|
canDelete, clickAdminActionsSubMenuEntry, clickEditSubMenuEntry, clickLocale, clickMoreActionsSubMenuEntry, copy, createInlinePage, createPage, delete, deletePage, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getDocumentTitle, getEditURL, getErrorContent, getHTMLMetaDataValue, getLocales, getMetaDataValue, getPageTitle, getPageURL, hasLeftPanel, hasLoginLink, hasNotificationsMenu, hasRenderingError, hideDrawer, isAuthenticated, isDrawerVisible, isForbidden, isNewDocument, isNotificationsMenuOpen, login, logout, register, rename, sendKeys, showDrawer, toggleActionMenu, toggleDrawer, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, viewChildren, waitUntilPageIsLoaded, watchDocument, watchSpace, watchWiki
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public CommentsTab openCommentsDocExtraPane()
public HistoryPane openHistoryDocExtraPane()
public AttachmentsPane openAttachmentsDocExtraPane()
public InformationPane openInformationDocExtraPane()
public boolean exists()
public String getContent()
public WYSIWYGEditPage editSection(int sectionNumber)
public org.openqa.selenium.WebElement getTranslateButton()
public boolean hasTranslateButton()
true
if the "Translate" page button is present, false
otherwisepublic void clickWantedLink(String spaceName, String pageName, boolean waitForTemplateDisplay)
public void clickWantedLink(org.xwiki.model.reference.EntityReference reference, boolean waitForTemplateDisplay)
public BreadcrumbElement getBreadcrumb()
public String getBreadcrumbContent()
public boolean hasBreadcrumbContent(String breadcrumbItem, boolean isCurrent)
public boolean hasBreadcrumbContent(String breadcrumbItem, boolean isCurrent, boolean withLink)
public ViewPage clickBreadcrumbLink(String linkText)
linkText
- the link textpublic boolean isInlinePage()
public void waitForDocExtraPaneActive(String paneId)
paneId
- valid values: "history", "comments", etcpublic void waitUntilContent(String expectedValue)
expectedValue
- the content value to wait for (in regex format)public boolean contentContainsElement(org.openqa.selenium.By elementLocator)
elementLocator
- the element to locate in the content of the page.public void scrollToTop()
public AttachmentsPane useShortcutKeyForAttachmentPane()
public HistoryPane useShortcutKeyForHistoryPane()
public CommentsTab useShortcutKeyForCommentPane()
public InformationPane useShortcutKeyForInformationPane()
public String getTitleColor()
public String getPageBackgroundColor()
public String getTitleFontFamily()
Copyright © 2004–2021 XWiki. All rights reserved.