Class EditorContent

    • Field Detail

      • binder

        @Inject
        protected com.atlassian.pageobjects.PageBinder binder
        Deprecated.
      • driver

        @Inject
        protected org.openqa.selenium.WebDriver driver
        Deprecated.
      • client

        @Inject
        protected org.openqa.selenium.JavascriptExecutor client
        Deprecated.
      • page

        @Inject
        protected com.atlassian.pageobjects.elements.PageElementFinder page
        Deprecated.
      • timeouts

        @Inject
        protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
        Deprecated.
    • Constructor Detail

      • EditorContent

        public EditorContent()
        Deprecated.
    • Method Detail

      • getRenderedContent

        public RenderedContent getRenderedContent()
        Deprecated.
        Returns a RenderedContent object which lets you easily access elements in the editor iframe without having to manually switch frames.
      • isContentVisible

        public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isContentVisible()
        Deprecated.
      • getContainerSize

        public com.atlassian.pageobjects.elements.query.TimedQuery<org.openqa.selenium.Dimension> getContainerSize()
        Deprecated.
        Returns editor size
        Since:
        5.6
      • setContentViaJs

        public void setContentViaJs​(String content)
        Deprecated.
        This sets the content of the editor using the TinyMCE api. It does not fire the correct key events and does not wait for the content to be present either. Use this method with care.
        Parameters:
        content - html content to be set in the editor
      • typeWithoutLosingFocus

        public EditorContent typeWithoutLosingFocus​(CharSequence... content)
        Deprecated.
        Type content in the editor and do not lose focus
      • clickOnInlinetask

        public EditorContent clickOnInlinetask​(String listItemSelector)
        Deprecated.
        Inline-task-list only have a small portion of the list item that can be clicked in order to toggle the checked state.
      • type

        public EditorContent type​(String content)
        Deprecated.
        Type content in the editor. It assumes that no page layout has been applied.
      • typeInColumn

        public void typeInColumn​(int column,
                                 String content)
        Deprecated.
        Type content in the given column index. It assumes that a column page layout has been applied. Note the column index is 1-based.
      • setContentInColumn

        public void setContentInColumn​(int column,
                                       String content)
        Deprecated.
        Set content in the given column index. It assumes that a column page layout has been applied. Note the column index is 1-based.
        Parameters:
        column - column index (1-based)
        content - string to be set as content.
      • clickEditInlineMacro

        public MacroForm clickEditInlineMacro​(String macroName)
        Deprecated.
        Click on the macro, than wait for the property panel to appear and click edit
        Parameters:
        macroName - The name of the macro to wait for
      • doubleClickEditInlineMacro

        public MacroForm doubleClickEditInlineMacro​(String macroName)
        Deprecated.
        Double click on the macro to trigger edit mode
        Parameters:
        macroName - The name of the macro to wait for
      • waitForInlineMacro

        public void waitForInlineMacro​(String macroName)
        Deprecated.
        Wait for a macro without a body to be rendered.
        Parameters:
        macroName - The name of the macro to wait for
      • waitForInlineMacroWithDefaultParameter

        public void waitForInlineMacroWithDefaultParameter​(String macroName,
                                                           String defaultParameter)
        Deprecated.
        Wait for a macro with a default parameter to be rendered.
      • waitForInlineMacroWithParameters

        public void waitForInlineMacroWithParameters​(String macroName,
                                                     String parameters)
        Deprecated.
        Wait for a macro with parameters to be rendered.
      • waitForMacroWithParameters

        public void waitForMacroWithParameters​(String macroName,
                                               List<String> parameters)
        Deprecated.
        Wait for a non-inline macro with parameters to be rendered.
      • waitForMacroWithParameters

        public void waitForMacroWithParameters​(String macroName,
                                               String... parameters)
        Deprecated.
      • waitForMacroBodyInColumn

        public void waitForMacroBodyInColumn​(int column,
                                             String macroName)
        Deprecated.
        Wait for a macro with a body to be rendered inside a column
        Parameters:
        column - The index of the column (1-based).
        macroName - The name of the macro to wait for
      • waitForMacroBody

        public void waitForMacroBody​(String macroName,
                                     String body)
        Deprecated.
        Wait for a macro with a body to be rendered
      • waitForTextContent

        public void waitForTextContent​(String content)
        Deprecated.
        Waits until the given text is present in the editor content.
      • sendKeys

        public void sendKeys​(String keys)
        Deprecated.
      • typeIn

        protected void typeIn​(com.atlassian.pageobjects.elements.PageElement element,
                              String content)
        Deprecated.
        Currently uses sendKeys to the given element to type. This needs to be rewritten so it works for all the browsers.
      • getHtml

        @Deprecated
        public String getHtml()
        Deprecated.
        Since 5.4 use getTimedHtml()
        Returns the current content of the Editor as HTML.
      • htmlContains

        public com.atlassian.pageobjects.elements.query.TimedCondition htmlContains​(String markup)
        Deprecated.
        Since:
        5.6
      • getTimedHtml

        public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTimedHtml()
        Deprecated.
      • getTimedNormalizedHtml

        public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTimedNormalizedHtml​(boolean normalizeSpaces)
        Deprecated.
        Since:
        5.6
      • normalizedHtmlContains

        public com.atlassian.pageobjects.elements.query.TimedCondition normalizedHtmlContains​(String normalizedHtml,
                                                                                              boolean normalizeSpaces)
        Deprecated.
        Since:
        5.6
      • normalizeHtml

        public String normalizeHtml​(String html,
                                    boolean normalizeSpaces)
        Deprecated.
        Since:
        5.6
      • selectFirstParagraph

        public void selectFirstParagraph()
        Deprecated.
      • selectFirstElementWithSelector

        public void selectFirstElementWithSelector​(String selector)
        Deprecated.
        Select the first element matching the given selector.
      • selectElementWithSelectorAndIndex

        public void selectElementWithSelectorAndIndex​(String selector,
                                                      int elementIndex)
        Deprecated.
      • select

        public void select​(String startArgs,
                           String endArgs)
        Deprecated.
      • placeCursorAtStart

        public void placeCursorAtStart​(String selector)
        Deprecated.
        Positions the cursor at the start of the first matched element for the provided CSS selector.
      • placeCursorAtEnd

        public void placeCursorAtEnd​(String selector)
        Deprecated.
        Positions the cursor at the end of the first matched element for the provided CSS selector.
      • placeCursor

        public void placeCursor​(String selector,
                                int position)
        Deprecated.
        Positions the cursor at the specified position in the first matched element for the provided CSS selector. Doesn't work for IE very well.
      • putCursorAtStartOfElementWithSelectorAndIndex

        public void putCursorAtStartOfElementWithSelectorAndIndex​(String selector,
                                                                  int elementIndex)
        Deprecated.
        Place the cursor at the start of the element matching the given selector and index. Seems to work in Firefox & IE, although the moxiecode docs indicate that the 'true' second parameter doesn't do anything in IE. If this method turns out to be consistent we could refactor #putCursorAtStartOfFirstElementWithSelector(String) into it.
        Parameters:
        selector - see tiny_mce_src.DOMUtils.select
        elementIndex - index of matched element to select, 0-indexed
      • getInnerHTMLOfCurrentCursorPosition

        public String getInnerHTMLOfCurrentCursorPosition()
        Deprecated.
        Returns the innerHTML value of the node that the cursor is currently positioned in.
      • getSelectorParentText

        public com.atlassian.pageobjects.elements.query.TimedQuery<String> getSelectorParentText​(String selector)
        Deprecated.
        Returns the parent PageElement of a selector
      • isElementPresentInEditorContentTimed

        public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isElementPresentInEditorContentTimed​(org.openqa.selenium.By selection)
        Deprecated.
        Returns if certain selection is matched on the editor content
      • elementSelectionNumberOfMatches

        public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> elementSelectionNumberOfMatches​(org.openqa.selenium.By selection)
        Deprecated.
        Returns the number of matches for a particular selector query within the editor content
      • getTextInSelection

        public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTextInSelection​(org.openqa.selenium.By selection)
        Deprecated.
        Returns text contained in the provided selection within the editor content
      • getAttributeInSelection

        public com.atlassian.pageobjects.elements.query.TimedQuery<String> getAttributeInSelection​(org.openqa.selenium.By selection,
                                                                                                   String attr)
        Deprecated.
        Returns the value of the attribute of the selection
      • hasMacroPlaceholder

        public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasMacroPlaceholder​(String macroName)
        Deprecated.
      • getCurrentSearchMatchText

        public com.atlassian.pageobjects.elements.query.TimedQuery<String> getCurrentSearchMatchText()
        Deprecated.
      • clickInContent

        public void clickInContent​(org.openqa.selenium.By by)
        Deprecated.
      • isVisble

        @Deprecated
        public com.atlassian.pageobjects.elements.query.TimedCondition isVisble​(org.openqa.selenium.By by)
        Deprecated.
        since 5.5.1 use isPresent
      • isVisible

        public com.atlassian.pageobjects.elements.query.TimedCondition isVisible​(org.openqa.selenium.By by)
        Deprecated.
        Check if the editor content has a certain element
        Since:
        5.6
      • isImagePresent

        public com.atlassian.pageobjects.elements.query.TimedCondition isImagePresent​(Attachment attachment)
        Deprecated.
      • isImagePresentBySrc

        public com.atlassian.pageobjects.elements.query.TimedCondition isImagePresentBySrc​(Attachment attachment)
        Deprecated.
      • getImageHeight

        public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> getImageHeight​(Attachment image)
        Deprecated.
        since 5.7 use `getEmbeddedImages` to get EditorEmbeddedImage then use EditorEmbeddedImage.getHeight()
      • waitUntilMetaDataIsPopulated

        public void waitUntilMetaDataIsPopulated()
        Deprecated.
        Wait's until the meta data list for the macro browser is populated and then switches the frame back to tinymce
        Since:
        5.6
      • mentionsAutocomplete

        public MentionsMenu mentionsAutocomplete​(String content)
        Deprecated.
      • hasInlineMacro

        public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasInlineMacro​(String macroName,
                                                                                           List<String> macroParameters)
        Deprecated.
        Check if inline macro is existed on editor panel or not
      • hasMacro

        public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasMacro​(String macroName,
                                                                                     List<String> macroParameters)
        Deprecated.
        Check if non-inline macro exists in editor panel or not
      • hasMacro

        public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasMacro​(String macroName,
                                                                                     String... macroParameters)
        Deprecated.
      • hasPageLinkWithExplicitSpaceKey

        public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasPageLinkWithExplicitSpaceKey​(String spaceKey,
                                                                                                            String pageTitle)
        Deprecated.
      • undo

        public void undo()
        Deprecated.
        Execute Undo command in editor
      • pasteContent

        public void pasteContent​(String html)
        Deprecated.
        Pastes the content as though it came from the clipboard.
      • getEmbededLinks

        public List<EditorEmbeddedLink> getEmbededLinks()
        Deprecated.
        Returns:
        a list of links in the current editor. There is no guarenteed ordering, and may not appear in page order.
        Since:
        5.7
      • getEditorVersion

        public String getEditorVersion()
        Deprecated.
        Get TinyMCE version
        Returns:
        3 or 4