|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.selenium.client.EditorPreview
public class EditorPreview
Provides test support for accessing the editor preview and its contents.
Constructor Summary | |
---|---|
EditorPreview(ConfluenceSeleniumClient client,
Suite confluence)
|
Method Summary | |
---|---|
java.lang.String |
executeJsFunctionOnSelector(java.lang.String selector,
java.lang.String functionStr)
|
java.lang.String |
getFirstMatchingPreviewNodeText(java.lang.String selector)
|
java.lang.String |
getPreviewContent()
Gets the html content in the preview. |
java.lang.String |
getPreviewSelectorScript(java.lang.String selector)
|
java.lang.String |
getPreviewTableBodyCellText(int row,
int column)
|
java.lang.String |
getPreviewTableHeadingCellText(int row,
int column)
|
void |
waitForPreviewToContain(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditorPreview(ConfluenceSeleniumClient client, Suite confluence)
Method Detail |
---|
public void waitForPreviewToContain(java.lang.String jquerySelector)
jquerySelector
- the jquery selector to apply in the preview iframe.public java.lang.String getPreviewContent()
public void waitForPreviewToLoad()
public java.lang.String getPreviewTableBodyCellText(int row, int column)
public java.lang.String getPreviewTableHeadingCellText(int row, int column)
public java.lang.String getFirstMatchingPreviewNodeText(java.lang.String selector)
public java.lang.String executeJsFunctionOnSelector(java.lang.String selector, java.lang.String functionStr)
selector
- jQuery selectorfunctionStr
- apply this function to the result of the selectorpublic java.lang.String getPreviewSelectorScript(java.lang.String selector)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |