Package | Description |
---|---|
com.jaunt |
Jaunt [website] is a web-scraping & automation library that provides a lightweight HTTP useragent (headless browser), including JSON parser.
|
com.jaunt.component |
Modifier and Type | Method and Description |
---|---|
Form |
Document.getActiveForm()
Returns the Form that is currently active (ie, most recently edited) or returns null if no form has been edited.
|
Form |
Document.getForm(Element element)
Returns the Form for the specified form Element or throws a NotFound Exception.
|
Form |
Document.getForm(int n)
Returns the form object corresponding to the nth form (starting at 0 for the first form)
|
Form |
Document.getForm(String elementQuery)
Returns a Form object for the first form Element that matches the specified elementQuery (or throws a NotFound Exception).
|
Form |
Document.getFormByButton(String buttonLabelRegex)
Returns a Form object for the first form Element containing a button who's text/values is matched (case insensitive) by the specified regular expression (using Matcher.matches()), or throws a NotFound Exception.
|
Form |
Document.getFormByButtons(String[] buttonLabelRegexs)
Returns a Form object for the first form Element containing buttons who's text/values are matched (case insensitive) by the regular expressions in the specified array (using Matcher.matches()), or throws a NotFound Exception.
|
Modifier and Type | Method and Description |
---|---|
List<Form> |
Document.getForms()
returns a List of form components for this page.
|
Modifier and Type | Method and Description |
---|---|
Form |
Form.apply(Object... params)
Applies the specified parameters in succession to the form's editable (ie, visible and non-disabled) inputs, starting from the input after the most recently edited input (or starting from the first input, if the form has not yet been edited).
|
Form |
Form.choose(short labelPosition,
String label)
Deprecated.
use
chooseCheckBox(String,short) or chooseRadioButton(String,short) instead |
Form |
Form.choose(String menuLabel,
String menuItemRegex)
Deprecated.
use
chooseMenuItem(String,String) instead. |
Form |
Form.chooseCheckBox(String label,
short labelPosition)
Selects the checkbox with the specified (case-insensitive, wordspace-insensitive) text label.
|
Form |
Form.chooseMenuItem(String menuLabel,
String menuItemRegex)
Completes the menu that has the specified text label (case insensitive, wordspace insensitive) by selecting the menuitem(s) that matches the specified (case insensitive) regular expression (using Matcher.matches).
|
Form |
Form.chooseRadioButton(String label,
short labelPosition)
Selects the radiobutton with the specified (case-insensitive, wordspace-insensitive) text label.
|
Form |
Form.fillout(String label,
String value)
Deprecated.
use
filloutField(String,String) instead. |
Form |
Form.filloutField(String label,
String value)
Fills the textfield, password field, or textarea field that has the specified text label (case-insensitive, wordspace-insensitive) with the specified value.
|
Form |
Form.set(String name,
String value)
Sets the form input with the specified name to the specified value; FileComponents are set to upload the file who's location is specified by the specified value;
Checkboxes are 'checked' if the specified value is the same (case insensitive) as the value attribute of the checkbox (or if the specified value is "on" in cases where the checkbox has no value attribute).
|
Form |
Form.setCheckBox(String name,
boolean checked)
Sets whether the first checkbox with the specified (case-insensitive) name is checked and throws an Exception if the checkbox was not found.
|
Form |
Form.setFile(String name,
File file)
Sets the first FileComponent with the specified (case insensitive) name to upload the specified File and throws an Exception if no FileComponent with specified name was found.
|
Form |
Form.setHidden(String name,
String value)
Sets the first hidden field with the specified (case insensitive) name to the specified value and throws an Exception if no field with specified name exists.
|
Form |
Form.setPassword(String name,
String value)
Sets the first password field with the specified (case insensitive) name to the specified value and throws an Exception if no field with specified name exists.
|
Form |
Form.setRadio(String name,
int n)
Sets the radiobutton at index n and with the specified name to be 'checked' and
deselects all onther radiobuttons with the same name, throwing an exception if no such radiobutton exists.
|
Form |
Form.setRadio(String name,
String value)
Sets the radiobutton with the specified (case insensitive) name and
(case insensitive) value to 'checked' and deselects all other radiobuttons
with the same name.
|
Form |
Form.setSelect(String name,
int n)
Sets the nth menu option with the specified (case insensitive) name to 'selected',
and deselects all other options in the same select tag, throwing an Exception if no such menu option was found.
|
Form |
Form.setSelect(String name,
String value)
Sets the first menu option with specified (case insensitive) name and (case insensitive) value to 'selected' and
deselects all other options in the same select tag if the select tag does
not have 'multiple' keyword; throws an Exception if no such menu option exists.
|
Form |
Form.setTextArea(String name,
String value)
Sets the textarea with specified (case insensitive) name to the specified value and throws an Exception if no such button exists.
|
Form |
Form.setTextField(String name,
String value)
Sets the first textfield with the specified (case insensitive) name to the specified value and throws an Exception if no field with specified name was found.
|
Form |
Form.unchoose(short labelPosition,
String label)
Deprecated.
use
unchooseCheckBox(String,short) or unchooseRadioButton(String,short) instead |
Form |
Form.unchooseCheckBox(String label,
short labelPosition)
Unchecks the checkbox with the specified (case-insensitive, wordspace-insensitive) label.
|
Form |
Form.unchooseRadioButton(String label,
short labelPosition)
Unchecks the radiobutton with the specified (case-insensitive, wordspace-insensitive) label.
|