Class MacroPropertyPanel


  • @Deprecated
    public class MacroPropertyPanel
    extends PropertyPanel
    Deprecated.
    in 5.8. Use MacroPropertyPanel instead from maven module com.atlassian.confluence:confluence-webdriver-pageobjects. See the new README.
    Represents the property panel for a MacroPlaceholder.

    Different to a MacroPlaceholder, the PropertyPanel is not added to the DOM of the wysiwygTextarea_ifr IFrame, but instead to the parent DOM. The PropertyPanel is generated from the <property-panel> declaration in the macro descriptor. It may have been modified on the client side, but it should at least contain the Remove and Edit buttons.

    • Constructor Detail

      • MacroPropertyPanel

        public MacroPropertyPanel()
        Deprecated.
    • Method Detail

      • button

        public void button​(String buttonId)
        Deprecated.
        Locates and clicks the <a> element for a given button id.

        The CSS class used for the lookup is generated by tinyMce-property-panel-macros.js. The button id is the one taken from the plugin descriptor, e.g.

         
          <xhtml-macro>
              ...
              <property-panel>
                  ...
                  <button id="Grey" label=""/>
                  ...
              </property-panel>
              ...
          </xhtml-macro>
         
         

        means that you'd parametrise this method with Grey (case-sensitive) in order to retrieve the element representing this button.

        Parameters:
        buttonId - the button id
      • remove

        public void remove()
        Deprecated.
        Clicks the Remove button common to all generated property panels.

        Clicking this button will remove the underlying macro placeholder.

      • edit

        public MacroForm edit()
        Deprecated.
        Clicks the Edit button common to all generated property panels.

        Clicking this button will open the Macro editor and remove the underlying macro placeholder.

      • isVisible

        public com.atlassian.pageobjects.elements.query.TimedCondition isVisible()
        Deprecated.