public class

EditorPreview

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.selenium.client.EditorPreview

Class Overview

Provides test support for accessing the editor preview and its contents.

Summary

Public Constructors
EditorPreview(ConfluenceSeleniumClient client, Confluence confluence)
Public Methods
String executeJsFunctionOnSelector(String selector, String functionStr)
String getFirstMatchingPreviewNodeText(String selector)
String getPreviewContent()
Gets the html content in the preview.
String getPreviewSelectorScript(String selector)
String getPreviewTableCellText(int row, int column)
void waitForPreviewToContain(String jquerySelector)
Waits for the specified selector to match 1 or more items.
void waitForPreviewToLoad()
Waits up to Editor.EDITOR_TIMEOUT_MILLIS ms for the preview to load.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EditorPreview (ConfluenceSeleniumClient client, Confluence confluence)

Public Methods

public String executeJsFunctionOnSelector (String selector, String functionStr)

Parameters
selector jQuery selector
functionStr apply this function to the result of the selector

public String getFirstMatchingPreviewNodeText (String selector)

public String getPreviewContent ()

Gets the html content in the preview.

Returns
  • html

public String getPreviewSelectorScript (String selector)

public String getPreviewTableCellText (int row, int column)

public void waitForPreviewToContain (String jquerySelector)

Waits for the specified selector to match 1 or more items.

Parameters
jquerySelector the jquery selector to apply in the preview iframe.

public void waitForPreviewToLoad ()

Waits up to Editor.EDITOR_TIMEOUT_MILLIS ms for the preview to load.