Package org.xwiki.administration.test.po
Class TemplateProviderInlinePage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BasePage
-
- org.xwiki.test.ui.po.ViewPage
-
- org.xwiki.test.ui.po.InlinePage
-
- org.xwiki.administration.test.po.TemplateProviderInlinePage
-
public class TemplateProviderInlinePage extends InlinePage
Represents a template provider page in inline mode- Since:
- 4.2M1
- Version:
- $Id: 064ae6d3ead8cef8b8715d42968d2a40126502d5 $
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_EDITONLY
static String
ACTION_SAVEANDEDIT
-
Constructor Summary
Constructors Constructor Description TemplateProviderInlinePage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getCreationRestrictions()
String
getTemplate()
String
getTemplateName()
List<String>
getVisibilityRestrictions()
boolean
isCreationRestrictionsSuggestions()
boolean
isPageTemplate()
boolean
isTerminal()
void
setActionOnCreate(String actionName)
The action to execute when the create button is pushed, you can configure here whether the new document is saved before it is opened for edition or not.void
setCreationRestrictions(List<String> spaces)
void
setCreationRestrictionsSuggestions(boolean selected)
void
setPageTemplate(boolean isPageTemplate)
void
setTemplate(String value)
void
setTemplate(String value, boolean waitForSuggestion)
Set the template value.void
setTemplateName(String value)
void
setTerminal(boolean isTerminal)
void
setVisibilityRestrictions(List<String> spaces)
-
Methods inherited from class org.xwiki.test.ui.po.InlinePage
clickCancel, clickPreview, clickSaveAndContinue, clickSaveAndContinue, clickSaveAndView, clickSaveAndView, createViewPage, getContent, getForm, getFormLocator, getSaveAndContinueButton, getSaveAndViewButton, getValue, setValue
-
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, getPageBackgroundColor, getTitleColor, getTitleFontFamily, getTranslateButton, hasBreadcrumbContent, hasBreadcrumbContent, hasTranslateButton, isInlinePage, openCommentsDocExtraPane, openHistoryDocExtraPane, openInformationDocExtraPane, scrollToTop, useShortcutForDocExtraPane, useShortcutKeyForCommentPane, useShortcutKeyForHistoryPane, useShortcutKeyForInformationPane, waitForDocExtraPaneActive, waitUntilContent
-
Methods inherited from class org.xwiki.test.ui.po.BasePage
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, reloadPage, rename, sendKeys, showDrawer, toggleActionMenu, toggleDrawer, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, viewChildren, watchDocument, watchSpace, watchWiki
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Field Detail
-
ACTION_SAVEANDEDIT
public static final String ACTION_SAVEANDEDIT
- See Also:
- Constant Field Values
-
ACTION_EDITONLY
public static final String ACTION_EDITONLY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTemplateName
public String getTemplateName()
-
setTemplateName
public void setTemplateName(String value)
-
getTemplate
public String getTemplate()
-
setTemplate
public void setTemplate(String value, boolean waitForSuggestion)
Set the template value.- Parameters:
value
- the value to fill.waitForSuggestion
- if true, it will wait for suggestion before choosing a value: it will avoid a StaleElementReferenceException if the suggestion takes a bit of time. If false, directly takes the typed text: this should be used if there is no suggestion.- Since:
- 11.5RC1
-
setTemplate
public void setTemplate(String value)
-
isPageTemplate
public boolean isPageTemplate()
-
setPageTemplate
public void setPageTemplate(boolean isPageTemplate)
-
isTerminal
public boolean isTerminal()
-
setTerminal
public void setTerminal(boolean isTerminal)
-
getVisibilityRestrictions
public List<String> getVisibilityRestrictions()
- Returns:
- the list of spaces
- Since:
- 8.2M3 (renamed from getSpaces)
-
setVisibilityRestrictions
public void setVisibilityRestrictions(List<String> spaces)
- Parameters:
spaces
- the list of spaces- Since:
- 8.2M3 (renamed from setSpaces)
-
setCreationRestrictions
public void setCreationRestrictions(List<String> spaces)
- Parameters:
spaces
- the list of spaces to set- Since:
- 8.3M2
-
getCreationRestrictions
public List<String> getCreationRestrictions()
- Returns:
- the list of spaces
- Since:
- 8.2M2
-
setActionOnCreate
public void setActionOnCreate(String actionName)
The action to execute when the create button is pushed, you can configure here whether the new document is saved before it is opened for edition or not.- Parameters:
actionName
- the behavior to have on create; valid values are "saveandedit" and "edit". SeeACTION_EDITONLY
andACTION_SAVEANDEDIT
- Since:
- 7.2M2
-
isCreationRestrictionsSuggestions
public boolean isCreationRestrictionsSuggestions()
- Returns:
- true if the creationRestrictions are suggestions, false otherwise
- Since:
- 8.3M2
-
setCreationRestrictionsSuggestions
public void setCreationRestrictionsSuggestions(boolean selected)
- Parameters:
selected
- true if the creationRestrictions should be suggestions, false otherwise- Since:
- 8.3M2
-
-