|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.test.ui.po.BaseElement
org.xwiki.test.ui.po.CommentForm
public class CommentForm
Represents the form used to add, edit or reply to a comment.
| Constructor Summary | |
|---|---|
CommentForm(org.openqa.selenium.By containerLocator)
Creates a new form instance. |
|
| Method Summary | |
|---|---|
void |
clickBack()
Clicks on the back button to cancel the preview and show the content text area |
void |
clickCancel()
Clicks on the cancel button. |
org.openqa.selenium.WebElement |
clickPreview()
Clicks on the preview button and waits for the preview to be ready. |
void |
clickSubmit()
Clicks on the submit button and waits for the operation to take place. |
void |
clickSubmit(boolean wait)
Clicks on the submit button and optionally waits for the operation to take place. |
org.openqa.selenium.WebElement |
getContentField()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommentForm(org.openqa.selenium.By containerLocator)
containerLocator - the locator to the form| Method Detail |
|---|
public org.openqa.selenium.WebElement getContentField()
public org.openqa.selenium.WebElement clickPreview()
public void clickBack()
public void clickSubmit()
public void clickSubmit(boolean wait)
Note: Use this method when JavaScript is disabled and the submit is not done asynchronously.
wait - true to wait for the success notification, false otherwisepublic void clickCancel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||