org.encog.bot.browse.range
public class Form extends DocumentRange
Modifier and Type | Class and Description |
---|---|
static class |
Form.Method
The method for this form.
|
Constructor and Description |
---|
Form(WebPage source)
Construct a form on the specified web page.
|
Modifier and Type | Method and Description |
---|---|
Input |
findType(String type,
int index)
Find the form input by type.
|
Address |
getAction() |
Form.Method |
getMethod() |
void |
setAction(Address theAction)
Set the action for the form.
|
void |
setMethod(Form.Method theMethod)
Set the method to send the form.
|
String |
toString() |
addElement, getBegin, getClassAttribute, getElements, getEnd, getIdAttribute, getParent, getSource, getTextOnly, setBegin, setClassAttribute, setEnd, setIdAttribute, setParent, setSource
public Form(WebPage source)
source
- The web page that contains this form.public final Input findType(String type, int index)
type
- The type of input we want.index
- The index to begin searching at.public final Address getAction()
public final Form.Method getMethod()
public final void setAction(Address theAction)
theAction
- The URL to send the form to.public final void setMethod(Form.Method theMethod)
theMethod
- How to send the form.Copyright © 2014. All Rights Reserved.