public class WikiEditPage extends PreviewableEditPage
EditPage.Editorcancel, currentEditorDiv, save, saveandcontinue, syntaxIdSelect| Constructor and Description |
|---|
WikiEditPage() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearContent() |
LoginPage |
clickModalLoginLink() |
void |
clickToolbarButton(String buttonTitle) |
void |
closeLoginModal() |
String |
getContent()
Get the
content of the page. |
String |
getExactContent()
Get the
content of the page without removing leading or trailing whitespaces. |
String |
getParent() |
String |
getTitle()
Get the
title of the page. |
static WikiEditPage |
gotoPage(org.xwiki.model.reference.EntityReference pageReference)
Open the specified page in Wiki edit mode.
|
static WikiEditPage |
gotoPage(String space,
String page)
Go to the passed page in wiki edit mode.
|
boolean |
isEditCommentDisplayed() |
boolean |
isEnabled() |
boolean |
loginModalDisplayed() |
void |
sendKeys(CharSequence... keys) |
void |
sendKeysWithAction(org.openqa.selenium.Keys modifierKey,
CharSequence... keys)
Allows to send a key combination with Selenium 3.
|
void |
setContent(String content)
Set the
content of the page. |
void |
setEditComment(String comment)
Set
comment for this change. |
void |
setMinorEdit(boolean value)
Set the minor edit check box value.
|
void |
setParent(String parent)
Set the
parent of the page |
void |
setTitle(String title)
Set the
title of the page. |
clickPreview, getPreviewButtonclickCancel, clickCancelCSRFWarningButton, clickForceSaveCSRFButton, clickSaveAndContinue, clickSaveAndContinue, clickSaveAndView, clickSaveAndView, clickTranslate, getDefaultLanguage, getDocumentTitle, getEditor, getExistingLocales, getExistingLocales, getNotExistingLocales, getSaveAndContinueButton, getSaveAndViewButton, getSyntaxId, isCSRFWarningDisplayed, setDefaultLanguage, setSyntaxId, useShortcutKeyForCancellingEdition, waitUntilPageJSIsLoadedcanDelete, clickAdminActionsSubMenuEntry, clickEditSubMenuEntry, clickLocale, clickMoreActionsSubMenuEntry, copy, createInlinePage, createPage, delete, deletePage, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getEditURL, getErrorContent, getHTMLMetaDataValue, getLocales, getMetaDataValue, getPageTitle, getPageURL, hasLeftPanel, hasLoginLink, hasNotificationsMenu, hasRenderingError, hideDrawer, isAuthenticated, isDrawerVisible, isForbidden, isNewDocument, isNotificationsMenuOpen, login, logout, register, rename, showDrawer, toggleActionMenu, toggleDrawer, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, viewChildren, waitUntilPageIsLoaded, watchDocument, watchSpace, watchWikigetDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessagepublic static WikiEditPage gotoPage(String space, String page)
public static WikiEditPage gotoPage(org.xwiki.model.reference.EntityReference pageReference)
pageReference - the page to openpublic String getTitle()
title of the page.public void setTitle(String title)
title of the page.public String getParent()
public void setParent(String parent)
parent of the pageparent - the value for the new parent to setpublic String getContent()
content of the page.public String getExactContent()
content of the page without removing leading or trailing whitespaces.public void setContent(String content)
content of the page.public void setMinorEdit(boolean value)
public void setEditComment(String comment)
comment for this change.public boolean isEditCommentDisplayed()
public boolean loginModalDisplayed()
public void closeLoginModal()
public LoginPage clickModalLoginLink()
public void clickToolbarButton(String buttonTitle)
public void clearContent()
public void sendKeys(CharSequence... keys)
public void sendKeysWithAction(org.openqa.selenium.Keys modifierKey,
CharSequence... keys)
Keys.chord(CharSequence...) in Selenium 3.
In order to trigger the actions on the specific cursor place, you need to first place your cursor inside the
content area by using sendKeys(CharSequence...) with arrows.modifierKey - the meta key to be called for the shortcut (SHIFT/ALT/META)keys - the key sequence to call during the shortcut.public boolean isEnabled()
Copyright © 2004–2021 XWiki. All rights reserved.