Class ViewPage

    • Constructor Detail

      • ViewPage

        public ViewPage()
    • Method Detail

      • openCommentsDocExtraPane

        public CommentsTab openCommentsDocExtraPane()
        Opens the comments tab.
        Returns:
        element for controlling the comments tab
      • openHistoryDocExtraPane

        public HistoryPane openHistoryDocExtraPane()
      • openInformationDocExtraPane

        public InformationPane openInformationDocExtraPane()
      • exists

        public boolean exists()
        Returns:
        does this page exist.
      • getContent

        public String getContent()
        Returns:
        the page's main content as text (no HTML)
      • getTranslateButton

        public org.openqa.selenium.WebElement getTranslateButton()
        Returns:
        the "Translate" page button; use this only if you expect the button to be present
        Since:
        12.10.6, 13.2RC1
      • hasTranslateButton

        public boolean hasTranslateButton()
        Returns:
        true if the "Translate" page button is present, false otherwise
        Since:
        12.10.6, 13.2RC1
      • clickWantedLink

        public void clickWantedLink​(String spaceName,
                                    String pageName,
                                    boolean waitForTemplateDisplay)
        Clicks on a wanted link in the page.
      • clickWantedLink

        public void clickWantedLink​(org.xwiki.model.reference.EntityReference reference,
                                    boolean waitForTemplateDisplay)
        Clicks on a wanted link in the page.
        Since:
        7.2M2
      • getBreadcrumbContent

        public String getBreadcrumbContent()
      • hasBreadcrumbContent

        public boolean hasBreadcrumbContent​(String breadcrumbItem,
                                            boolean isCurrent)
      • hasBreadcrumbContent

        public boolean hasBreadcrumbContent​(String breadcrumbItem,
                                            boolean isCurrent,
                                            boolean withLink)
      • clickBreadcrumbLink

        public ViewPage clickBreadcrumbLink​(String linkText)
        Clicks on the breadcrumb link with the given text.
        Parameters:
        linkText - the link text
        Returns:
        the target of the breadcrumb link
      • isInlinePage

        public boolean isInlinePage()
      • waitForDocExtraPaneActive

        public void waitForDocExtraPaneActive​(String paneId)
        Parameters:
        paneId - valid values: "history", "comments", etc
      • waitUntilContent

        public void waitUntilContent​(String expectedValue)
        Waits until the page has the passed content by refreshing the page
        Parameters:
        expectedValue - the content value to wait for (in regex format)
        Since:
        4.0M1
      • contentContainsElement

        public boolean contentContainsElement​(org.openqa.selenium.By elementLocator)
        Parameters:
        elementLocator - the element to locate in the content of the page.
        Returns:
        true if the content of the page contains the element
        Since:
        11.5RC1
      • scrollToTop

        public void scrollToTop()
        Instantaneously scrolls to the top of the screen.
        Since:
        13.3RC1, 12.10.7
      • useShortcutForDocExtraPane

        protected void useShortcutForDocExtraPane​(String shortcut,
                                                  String pane)
      • useShortcutKeyForHistoryPane

        public HistoryPane useShortcutKeyForHistoryPane()
      • useShortcutKeyForCommentPane

        public CommentsTab useShortcutKeyForCommentPane()
      • useShortcutKeyForInformationPane

        public InformationPane useShortcutKeyForInformationPane()
      • getTitleColor

        public String getTitleColor()
      • getPageBackgroundColor

        public String getPageBackgroundColor()
      • getTitleFontFamily

        public String getTitleFontFamily()