public class FormNavigationActionDoer extends NavigationActionDoer
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
FormNavigationActionDoer(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement,
java.util.HashSet<FormParameter> formParametersToSet)
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.
|
void |
prepareFormForSubmission(ScrapingSessionState scrapingSessionState)
Prepares the form to be submitted.
|
getFormParametersToSet, getHtmlElement, getNavigationActionName, reset, setFormParametersToSet, setHtmlElement, setNavigationActionName
public FormNavigationActionDoer(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement, java.util.HashSet<FormParameter> formParametersToSet)
HtmlElement
.htmlElement
- The HtmlElement
.formParametersToSet
- The parameters to set on the form.public void prepareFormForSubmission(ScrapingSessionState scrapingSessionState)
scrapingSessionState
- A ScrapingSessionState
used to resolve
variables.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