public class CommentForm extends BaseElement
Constructor and Description |
---|
CommentForm(org.openqa.selenium.By containerLocator)
Creates a new form instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addToContentField(String content)
Add some content to the content field.
|
void |
clearAndSetContentField(String content)
Replace the current content of the content field with the provided content.
|
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() |
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public CommentForm(org.openqa.selenium.By containerLocator)
containerLocator
- the locator to the formpublic org.openqa.selenium.WebElement getContentField()
public void clearAndSetContentField(String content)
content
- the contentpublic void addToContentField(String content)
content
- the added contentpublic 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()
Copyright © 2004–2021 XWiki. All rights reserved.