public class InlinePage extends ViewPage
Constructor and Description |
---|
InlinePage() |
Modifier and Type | Method and Description |
---|---|
<T extends ViewPage> |
clickCancel() |
void |
clickPreview() |
void |
clickSaveAndContinue() |
void |
clickSaveAndContinue(boolean wait)
Clicks on the Save and Continue button.
|
<T extends ViewPage> |
clickSaveAndView() |
void |
clickSaveAndView(boolean wait)
Useful when the save and view operation could fail on the client side and a reload (the view part) might thus not
take place.
|
protected <T extends ViewPage> |
createViewPage()
Can be overridden to return extended
ViewPage . |
String |
getContent() |
org.openqa.selenium.WebElement |
getForm() |
org.openqa.selenium.By |
getFormLocator() |
org.openqa.selenium.WebElement |
getSaveAndContinueButton()
Use this method instead of
clickSaveAndContinue() and call WebElement.click() when you know that
the next page is not a standard XWiki InlinePage . |
org.openqa.selenium.WebElement |
getSaveAndViewButton()
Use this method instead of
clickSaveAndView() and call WebElement.click() when you know that the
next page is not a standard XWiki InlinePage . |
String |
getValue(String fieldName)
Retrieves the value of the specified form field
|
void |
setValue(String fieldName,
String fieldValue)
Sets the value of the specified form field
|
void |
waitUntilPageJSIsLoaded()
Waits for the javascript libraries and their plugins that need to load before the UI's elements can be used
safely.
|
clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, getPageBackgroundColor, getTitleColor, getTitleFontFamily, getTranslateButton, hasBreadcrumbContent, hasBreadcrumbContent, hasTranslateButton, isInlinePage, openAttachmentsDocExtraPane, openCommentsDocExtraPane, openHistoryDocExtraPane, openInformationDocExtraPane, scrollToTop, useShortcutKeyForAttachmentPane, useShortcutKeyForCommentPane, useShortcutKeyForHistoryPane, useShortcutKeyForInformationPane, waitForDocExtraPaneActive, waitUntilContent
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
public void clickPreview()
public void clickSaveAndContinue()
public void clickSaveAndContinue(boolean wait)
clickSaveAndContinue()
when you want to wait
for a different message (e.g. an error message).wait
- true
to wait for the page to be saved, false
otherwisepublic org.openqa.selenium.WebElement getSaveAndContinueButton()
clickSaveAndContinue()
and call WebElement.click()
when you know that
the next page is not a standard XWiki InlinePage
.public <T extends ViewPage> T clickSaveAndView()
public void clickSaveAndView(boolean wait)
wait
- true
to wait for the page to be saved and reloaded, false
otherwisepublic org.openqa.selenium.WebElement getSaveAndViewButton()
clickSaveAndView()
and call WebElement.click()
when you know that the
next page is not a standard XWiki InlinePage
.public <T extends ViewPage> T clickCancel()
protected <T extends ViewPage> T createViewPage()
ViewPage
.public String getContent()
getContent
in class ViewPage
public org.openqa.selenium.WebElement getForm()
public org.openqa.selenium.By getFormLocator()
public String getValue(String fieldName)
fieldName
- the name of a form fieldpublic void setValue(String fieldName, String fieldValue)
fieldName
- the name of a form fieldfieldValue
- the new value for the specified form fieldpublic void waitUntilPageJSIsLoaded()
BaseElement
Subclassed should override this method and add additional checks needed by their logic.
waitUntilPageJSIsLoaded
in class BaseElement
Copyright © 2004–2021 XWiki. All rights reserved.