Class EditorPanel
java.lang.Object
com.atlassian.jira.plugins.pageobjects.editor.EditorPanel
- Direct Known Subclasses:
RichTextEditor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.atlassian.pageobjects.elements.PageElementprotected final com.atlassian.pageobjects.elements.PageElementprotected final com.atlassian.pageobjects.elements.PageElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends EditorPanel>
TClears editor content<T extends EditorPanel>
TclickElementInInframe(org.openqa.selenium.By by) <T extends EditorPanel>
TdoubleClickElementInInframe(org.openqa.selenium.By by) protected voidprotected <T> TexecuteInIframe(Function<com.atlassian.pageobjects.elements.PageElement, T> operationOnEditArea) protected voidcom.atlassian.pageobjects.elements.PageElementGets output from the editorprotected com.atlassian.pageobjects.elements.PageElementcom.atlassian.pageobjects.elements.query.TimedQuery<String> Asynchronously gets output from the editorprotected org.openqa.selenium.WebDriverprotected com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> Is rte loading (initializing, loading plugins) ?com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> <T extends EditorPanel>
T<T extends EditorPanel>
TpasteImage(String fileName, boolean trace) <T extends EditorPanel>
TresizeImage(String url, int width, int height) <T extends EditorPanel>
TSelects all content of the editorprotected voidselectContent(com.atlassian.pageobjects.elements.PageElement element) <T extends EditorPanel>
TsetContent(String content) Sets content in the editor<T extends EditorPanel>
T<T extends EditorPanel>
T<T extends EditorPanel>
T<T extends EditorPanel>
Ttype(CharSequence... content) <T extends EditorPanel>
TUnselects all content of the editor<T extends EditorPanel>
TwaitForElement(org.openqa.selenium.By by)
-
Field Details
-
contentEditable
protected final com.atlassian.pageobjects.elements.PageElement contentEditable -
editorElement
protected final com.atlassian.pageobjects.elements.PageElement editorElement -
container
protected final com.atlassian.pageobjects.elements.PageElement container
-
-
Constructor Details
-
EditorPanel
public EditorPanel(com.atlassian.pageobjects.elements.PageElement container)
-
-
Method Details
-
isVisible
-
isLoading
Is rte loading (initializing, loading plugins) ? -
type
-
clearContent
Clears editor content -
getContent
Gets output from the editor- Returns:
- Inner html of RTE edit area.
-
getTimedContent
Asynchronously gets output from the editor- Returns:
- Timed query for RTE content.
- See Also:
-
setContent
Sets content in the editor- Parameters:
content- Content to set the edit area to.- Returns:
- this instance for fluent calls.
-
paste
-
pasteImage
-
speech
-
waitForElement
-
clickElementInInframe
-
doubleClickElementInInframe
-
resizeImage
-
selectAllContent
Selects all content of the editor -
unselectAllContent
Unselects all content of the editor -
getContract
-
selectContent
protected void selectContent(com.atlassian.pageobjects.elements.PageElement element) -
executeInIframe
protected <T> T executeInIframe(Function<com.atlassian.pageobjects.elements.PageElement, T> operationOnEditArea) -
getContenteditable
protected com.atlassian.pageobjects.elements.PageElement getContenteditable() -
exitEditorIframe
protected void exitEditorIframe() -
enterEditorIframe
protected void enterEditorIframe() -
getWebDriver
protected org.openqa.selenium.WebDriver getWebDriver() -
getContainer
public com.atlassian.pageobjects.elements.PageElement getContainer() -
shorcutUndo
-
shortcutRedo
-