Class AdministrationSectionPage

    • Constructor Detail

      • AdministrationSectionPage

        public AdministrationSectionPage​(String section)
    • Method Detail

      • gotoSpaceAdministration

        public static AdministrationSectionPage gotoSpaceAdministration​(org.xwiki.model.reference.SpaceReference spaceReference,
                                                                        String section)
        Go to the administration section of a given space reference.
        Since:
        11.3RC1
      • getURL

        public static String getURL​(String section)
        Parameters:
        section - the section ID
        Returns:
        the URL of the administration section corresponding to the current AdministrationSectionPage instance
        Since:
        6.3M1
      • getURL

        public static String getURL​(String section,
                                    org.xwiki.model.reference.SpaceReference spaceReference)
        Parameters:
        section - the section ID
        spaceReference - the space where we want to get the admin page
        Returns:
        the URL of the administration section corresponding to the current AdministrationSectionPage instance
        Since:
        11.3RC1
      • getURL

        public String getURL()
      • clickSave

        public void clickSave()
      • clickSave

        public void clickSave​(boolean wait)
      • getFormContainerElement

        @Deprecated
        public FormContainerElement getFormContainerElement()
        Deprecated.
        this method can be ambiguous since an administration section page might contain several forms. The method getFormContainerElement(String) should be used instead.
        Returns:
        the first form contained in this section.
      • getFormContainerElement

        public FormContainerElement getFormContainerElement​(String formId)
        Parameters:
        formId - ID of the form to reach.
        Returns:
        the form identified by its id.
        Since:
        11.5RC1, 11.3.1
      • getFormContainerElementForClass

        public FormContainerElement getFormContainerElementForClass​(String documentClass)
        Parameters:
        documentClass - the class name for which we want the dedicated form.
        Returns:
        the form dedicated to the given class.
        Since:
        11.5RC1, 11.3.1
      • hasLink

        public boolean hasLink​(String linkName)
      • hasHeading

        public boolean hasHeading​(int level,
                                  String headingId)
      • waitUntilActionButtonIsLoaded

        public void waitUntilActionButtonIsLoaded()
        If save button is present wait the action button js to be loaded.
        Since:
        11.6RC1