Class WikiEditPage


  • public class WikiEditPage
    extends PreviewableEditPage
    Represents the common actions possible on all Pages when using the "edit" action with "wiki" editor
    Since:
    3.2M3
    Version:
    $Id: 3ecf43dfc7f5ec7d9986c7ed5a118469c940e42d $
    • Constructor Detail

      • WikiEditPage

        public WikiEditPage()
    • Method Detail

      • gotoPage

        public static WikiEditPage gotoPage​(String space,
                                            String page)
        Go to the passed page in wiki edit mode.
      • gotoPage

        public static WikiEditPage gotoPage​(org.xwiki.model.reference.EntityReference pageReference)
        Open the specified page in Wiki edit mode.
        Parameters:
        pageReference - the page to open
        Since:
        12.10.9, 13.4.1, 13.5RC1
      • getTitle

        public String getTitle()
        Get the title of the page.
      • setTitle

        public void setTitle​(String title)
        Set the title of the page.
      • getParent

        public String getParent()
        Overrides:
        getParent in class EditPage
        Returns:
        the value of the parent field.
      • setParent

        public void setParent​(String parent)
        Set the parent of the page
        Parameters:
        parent - the value for the new parent to set
      • getContent

        public String getContent()
        Get the content of the page.
      • getExactContent

        public String getExactContent()
        Get the content of the page without removing leading or trailing whitespaces.
      • setContent

        public void setContent​(String content)
        Set the content of the page.
      • setMinorEdit

        public void setMinorEdit​(boolean value)
        Set the minor edit check box value.
      • setEditComment

        public void setEditComment​(String comment)
        Set comment for this change.
      • isEditCommentDisplayed

        public boolean isEditCommentDisplayed()
        Returns:
        true if the edit comment input field is displayed
      • loginModalDisplayed

        public boolean loginModalDisplayed()
      • closeLoginModal

        public void closeLoginModal()
      • clickModalLoginLink

        public LoginPage clickModalLoginLink()
      • clickToolbarButton

        public void clickToolbarButton​(String buttonTitle)
      • clearContent

        public void clearContent()
      • sendKeysWithAction

        public void sendKeysWithAction​(org.openqa.selenium.Keys modifierKey,
                                       CharSequence... keys)
        Allows to send a key combination with Selenium 3. We created this method to avoid some issues while using Keys.chord(CharSequence...) in Selenium 3. In order to trigger the actions on the specific cursor place, you need to first place your cursor inside the content area by using sendKeys(CharSequence...) with arrows.
        Parameters:
        modifierKey - the meta key to be called for the shortcut (SHIFT/ALT/META)
        keys - the key sequence to call during the shortcut.
      • isEnabled

        public boolean isEnabled()