public class FormHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected EmbeddedBrowser |
browser |
protected FormInputValueHelper |
formInputValueHelper |
static int |
RANDOM_STRING_LENGTH |
| Constructor and Description |
|---|
FormHandler(EmbeddedBrowser browser,
CrawlRules config) |
| Modifier and Type | Method and Description |
|---|---|
List<CandidateElement> |
getCandidateElementsForInputs(Element sourceElement,
EventableCondition eventableCondition) |
List<FormInput> |
getFormInputs() |
void |
handleFormElements(List<FormInput> formInputs)
Fills in form/input elements.
|
protected void |
setInputElementValue(Node element,
FormInput input)
Fills in the element with the InputValues for input
|
protected final EmbeddedBrowser browser
public static final int RANDOM_STRING_LENGTH
protected final FormInputValueHelper formInputValueHelper
@Inject public FormHandler(EmbeddedBrowser browser, CrawlRules config)
protected void setInputElementValue(Node element, FormInput input)
element - the node elementinput - the input datapublic void handleFormElements(List<FormInput> formInputs)
formInputs - form input list.public List<CandidateElement> getCandidateElementsForInputs(Element sourceElement, EventableCondition eventableCondition)
sourceElement - the form elementeventableCondition - the belonging eventable condition for sourceElementCopyright © 2007–2019. All rights reserved.