public class ClickNavigationActionDoer extends NavigationActionDoer
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
ClickNavigationActionDoer(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement)
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 ClickNavigationActionDoer(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement)
HtmlElement
.htmlElement
- The HtmlElement
.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