public class TextEntryNavigationActionDoer extends NavigationActionDoer
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
TextEntryNavigationActionDoer(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement,
java.lang.String valueToSet)
Generates a new one based on a
HtmlElement . |
Modifier and Type | Method and Description |
---|---|
com.gargoylesoftware.htmlunit.html.HtmlPage |
doAction(ScrapingSessionState scrapingSessionState,
boolean enableJavaScript)
Causes the HTML element to be clicked that will submit the form.
|
getFormParametersToSet, getHtmlElement, getNavigationActionName, reset, setFormParametersToSet, setHtmlElement, setNavigationActionName
public TextEntryNavigationActionDoer(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement, java.lang.String valueToSet)
HtmlElement
.htmlElement
- The HtmlElement
.valueToSet
- The value to set on the text box.public com.gargoylesoftware.htmlunit.html.HtmlPage doAction(ScrapingSessionState scrapingSessionState, boolean enableJavaScript) throws java.io.IOException
doAction
in class NavigationActionDoer
scrapingSessionState
- A ScrapingSessionState
used to resolve
variables.enableJavaScript
- Indicates whether or not JavaScript should be processed
when the action occurs.HtmlPage
.java.io.IOException