Modifier and Type | Class and Description |
---|---|
class |
NotFound
Represents an error caused by an inability to locate the target of a search.
|
Modifier and Type | Method and Description |
---|---|
Form |
Form.apply(Object... args)
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 |
Document.apply(Object... args)
Locates the first form in the document that has a large enough number of input fields to accommodate the number of args and then 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.
|
boolean |
Form.checkBoxIsChosen(String label,
Form.LabelSide labelSide)
Examines the checkbox with the specified text label and returns true if it is checked, otherwise returns false.
|
Form |
Form.chooseCheckBox(String label)
Selects the checkbox that has the specified text label on the right side.
|
Form |
Form.chooseCheckBox(String label,
Form.LabelSide labelSide)
Selects the checkbox with the specified text label.
|
Form |
Form.chooseMenuItem(String label,
String menuItemText)
Locates the dropdown menu that has the specified text label and selects the menuItem that matches the specified menuItemText.
|
Form |
Form.chooseRadioButton(String label)
Selects the radiobutton that has the specified text label on the right side.
|
Form |
Form.chooseRadioButton(String label,
Form.LabelSide labelSide)
Selects the radiobutton with the specified text label.
|
void |
Browser.download(String url,
File outputFile)
Downloads and saves the content at the specified url to the specified File, overwriting the file if it already exists; this method does not invoke the parser, and therefore UserAgent.doc is not updated; Http/https requests include session/cookie headers.
|
String |
Form.getChosenMenuItem(String label)
Locates the dropdown menu that has the specified text label and returns the text of the selected menu item.
|
String |
Form.getFieldValue(String label)
Returns the value of the textfield, password field, or textarea field that has the specified text label.
|
boolean |
Form.menuItemIsChosen(String label,
String menuItemText)
Locates the dropdown menu that has the specified text label and determines whether the menuitem that matches the specified text is selected, returning true/false correspondingly.
|
boolean |
Form.radioButtonIsChosen(String label,
Form.LabelSide labelSide)
Examines the radiobutton with the specified text label and returns true if it is checked, otherwise returns false.
|
Form |
Form.setFieldValue(String label,
String value)
Locates the textfield, password field, or textarea field that has the specified text label and fills the field with the specified text value.
|
Element |
Node.toElement()
Returns this node cast to an Element.
|
Form |
Form.unchooseCheckBox(String label)
Deselects the checkbox that has the specified text label on the right side.
|
Form |
Form.unchooseCheckBox(String label,
Form.LabelSide labelSide)
Deselects the checkbox with the specified text label.
|
Form |
Form.unchooseRadioButton(String label)
Deselects the radiobutton that has the specified text label on the right side.
|
Form |
Form.unchooseRadioButton(String label,
Form.LabelSide labelSide)
Deselects the radiobutton with the specified text label.
|