public class EditorPreview extends Object
Constructor and Description |
---|
EditorPreview(ConfluenceSeleniumClient client,
Suite confluence) |
Modifier and Type | Method and Description |
---|---|
String |
executeJsFunctionOnSelector(String selector,
String functionStr) |
String |
getFirstMatchingPreviewNodeText(String selector) |
String |
getPreviewContent()
Gets the html content in the preview.
|
String |
getPreviewSelectorScript(String selector) |
String |
getPreviewTableBodyCellText(int row,
int column) |
String |
getPreviewTableHeadingCellText(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.
|
public EditorPreview(ConfluenceSeleniumClient client, Suite confluence)
public void waitForPreviewToContain(String jquerySelector)
jquerySelector
- the jquery selector to apply in the preview iframe.public String getPreviewContent()
public void waitForPreviewToLoad()
public String getPreviewTableBodyCellText(int row, int column)
public String getPreviewTableHeadingCellText(int row, int column)
public String executeJsFunctionOnSelector(String selector, String functionStr)
selector
- jQuery selectorfunctionStr
- apply this function to the result of the selectorCopyright © 2003–2015 Atlassian. All rights reserved.