Package com.crawljax.core.configuration
Class Form
- java.lang.Object
-
- com.crawljax.core.configuration.Form
-
public class Form extends Object
Form configuration.
-
-
Field Summary
Fields Modifier and Type Field Description private FormActionformActionprivate List<FormInput>formInputs
-
Constructor Summary
Constructors Constructor Description Form()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddInputField(FormInput inputField)protected CrawlElementgetCrawlElement()protected FormActiongetFormAction()com.google.common.collect.ImmutableList<FormInput>getFormInputs()FormInputinputField(FormInput.InputType type, Identification identification)Specifies an input field to assign a value to.protected voidsetFormAction(FormAction formAction)StringtoString()
-
-
-
Field Detail
-
formAction
private FormAction formAction
-
-
Method Detail
-
inputField
public FormInput inputField(FormInput.InputType type, Identification identification)
Specifies an input field to assign a value to. Crawljax first tries to match the found HTML input element's id and then the name attribute.- Parameters:
type- the type of input fieldidentification- the locator of the input field- Returns:
- an InputField
-
getFormInputs
public com.google.common.collect.ImmutableList<FormInput> getFormInputs()
- Returns:
- the formInputs
-
getFormAction
protected FormAction getFormAction()
- Returns:
- the formAction
-
setFormAction
protected void setFormAction(FormAction formAction)
- Parameters:
formAction- The form action.
-
getCrawlElement
protected CrawlElement getCrawlElement()
- Returns:
- the crawlTag
-
addInputField
protected void addInputField(FormInput inputField)
- Parameters:
inputField- The input field.
-
-