Class MacroPropertyPanel

java.lang.Object
com.atlassian.confluence.pageobjects.component.editor.PropertyPanel
com.atlassian.confluence.pageobjects.component.editor.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 &ltproperty-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.

  • Field Summary

    Fields inherited from class com.atlassian.confluence.pageobjects.component.editor.PropertyPanel

    propertyPanelElement
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    button(String buttonId)
    Deprecated.
    Locates and clicks the <a> element for a given button id.
    Deprecated.
    Clicks the Edit button common to all generated property panels.
    com.atlassian.pageobjects.elements.query.TimedCondition
    Deprecated.
     
    void
    Deprecated.
    Clicks the Remove button common to all generated property panels.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MacroPropertyPanel

      public MacroPropertyPanel()
      Deprecated.
  • Method Details

    • 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.