Class EditPage

    • Field Detail

      • saveandcontinue

        protected org.openqa.selenium.WebElement saveandcontinue
      • save

        protected org.openqa.selenium.WebElement save
      • cancel

        protected org.openqa.selenium.WebElement cancel
      • currentEditorDiv

        protected org.openqa.selenium.WebElement currentEditorDiv
      • syntaxIdSelect

        protected org.openqa.selenium.WebElement syntaxIdSelect
    • Constructor Detail

      • EditPage

        public EditPage()
    • Method Detail

      • clickSaveAndContinue

        public void clickSaveAndContinue()
      • clickSaveAndContinue

        public void clickSaveAndContinue​(boolean wait)
        Clicks on the Save and Continue button. Use this instead of clickSaveAndContinue() when you want to wait for a different message (e.g. an error message).
        Parameters:
        wait - true to wait for the page to be saved, false otherwise
      • getSaveAndContinueButton

        public org.openqa.selenium.WebElement getSaveAndContinueButton()
        Use this method instead of clickSaveAndContinue() and call WebElement.click() when you know that the next page is not a standard XWiki InlinePage.
        Returns:
        the save and continue button used to submit the form.
      • clickSaveAndView

        public <T extends ViewPage> T clickSaveAndView()
      • clickSaveAndView

        public void clickSaveAndView​(boolean wait)
        Useful when the save and view operation could fail on the client side and a reload (the view part) might thus not take place.
        Parameters:
        wait - if we should wait for the page to be reloaded
        Since:
        7.4M2
      • getSaveAndViewButton

        public org.openqa.selenium.WebElement getSaveAndViewButton()
        Use this method instead of clickSaveAndView() and call WebElement.click() when you know that the next page is not a standard XWiki InlinePage.
        Returns:
        the save and view button used to submit the form.
      • clickCancel

        public ViewPage clickCancel()
      • getEditor

        public EditPage.Editor getEditor()
        Returns:
        the editor being used on this page
      • getSyntaxId

        public String getSyntaxId()
        Returns:
        the syntax if of the page
        Since:
        3.2M3
      • setSyntaxId

        public void setSyntaxId​(String syntaxId)
        Since:
        3.2M3
      • getParent

        public String getParent()
        Returns:
        the value of the parent field.
        Since:
        7.2M2
      • getExistingLocales

        protected Set<Locale> getExistingLocales​(List<org.openqa.selenium.WebElement> elements)
      • getExistingLocales

        public Set<Locale> getExistingLocales()
        Returns:
        a list of the locales already translated for this document
        Since:
        9.0RC1
      • getNotExistingLocales

        public Set<Locale> getNotExistingLocales()
        Returns:
        a list of the supported locales not yet translated for this document
        Since:
        9.0RC1
      • clickTranslate

        public WikiEditPage clickTranslate​(String locale)
        Parameters:
        locale - the locale to translate to
        Returns:
        the target locale edit page
        Since:
        9.0RC1
      • setDefaultLanguage

        public void setDefaultLanguage​(String defaultLanguage)
        Set the default language input field.
        Parameters:
        defaultLanguage - the string to fill the input.
        Since:
        11.3RC1
      • getDefaultLanguage

        public String getDefaultLanguage()
      • isCSRFWarningDisplayed

        public boolean isCSRFWarningDisplayed()
      • clickCancelCSRFWarningButton

        public void clickCancelCSRFWarningButton()
      • clickForceSaveCSRFButton

        public void clickForceSaveCSRFButton()
      • useShortcutKeyForCancellingEdition

        public ViewPage useShortcutKeyForCancellingEdition()
        Cancel the edition by using keyboard shortcut.
        Returns:
        a new ViewPage
        Since:
        11.9RC1