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 | Field and Description |
---|---|
Document |
UserAgent.doc
The Document created as a result of the most recent request, where response type was HTML or XML.
|
Modifier and Type | Method and Description |
---|---|
Document |
Document.apply(Object... params)
Applies the specified parameters in succession to the active 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); the "active" form is the form that was most recently edited; if no form is active, the inputs are applied to the first editable form in the document (ie, the first form that has at least one visible, editable, non-disabled input).
|
Document |
Document.choose(short labelPosition,
String labelRegex)
Deprecated.
|
Document |
Document.choose(String menuLabel,
String menuItemRegex)
Deprecated.
use
chooseMenuItem(java.lang.String, java.lang.String) instead. |
Document |
Document.chooseCheckBox(String labelRegex,
short labelPosition)
Selects the checkbox who's label is matched by the specified (case-insensitive) regular expression.
|
Document |
Document.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).
|
Document |
Document.chooseRadioButton(String labelRegex,
short labelPosition)
Selects the radiobutton who's label is matched by the specified (case-insensitive) regular expression.
|
Document |
Document.fillout(String label,
String value)
Deprecated.
use
filloutField(java.lang.String, java.lang.String) instead. |
Document |
Document.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.
|
Document |
UserAgent.open(File file)
Parses the HTML/XHTML/XML within the specified File, and creates UserAgent.doc to represent the Document (which is also returned by this method).
|
Document |
UserAgent.open(File file,
String documentUrl)
Parses the HTML/XHTML/XML within the specified File, and creates UserAgent.doc to represent the Document (which is also returned by this method).
|
Document |
UserAgent.openContent(String content)
Parses the source HTML, XHTML, or XML and creates UserAgent.doc to represent the Document (which is also returned by this method).
|
Document |
UserAgent.openContent(String content,
String documentUrl)
Parses the source HTML, XHTML, or XML and creates UserAgent.doc to represent the Document (which is also returned by this method).
|
Document |
UserAgent.send(HttpRequest httpRequest)
Sends the specified HttpRequest (GET, POST, HEAD, DELETE, or PUT)
|
Document |
UserAgent.sendDELETE(String url)
Sends an HTTP DELETE request for the specified url; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
|
Document |
UserAgent.sendDELETE(String url,
String... additionalHeaders)
Sends an HTTP DELETE request for the specified url; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
|
Document |
UserAgent.sendGET(String url)
Sends an HTTP GET request for the specified url; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
|
Document |
UserAgent.sendGET(String url,
String... additionalHeaders)
Sends an HTTP GET request for the specified url; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
|
Document |
UserAgent.sendPOST(String url,
String postData)
Sends an HTTP POST request for the specified url and queryString; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
|
Document |
UserAgent.sendPOST(String url,
String postData,
String... additionalHeaders)
Sends an HTTP POST request for the specified url and queryString; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
|
Document |
UserAgent.sendPUT(String url,
String content)
Sends an HTTP PUT request for the specified url and content; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
|
Document |
UserAgent.sendPUT(String url,
String content,
String... additionalHeaders)
Sends an HTTP PUT request for the specified url and content; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
|
Document |
Document.submit()
Submits the active form by pressing the submit button, throws a MultipleFound exception if more than one submit button exists in the form.
|
Document |
Document.submit(String buttonLabelRegex)
Submits the active form using the submit button who's text matches the specified (case insensitive) regular expression, using Matcher.matches.
|
Document |
Document.unchoose(short labelPosition,
String labelRegex)
Deprecated.
use
unchooseRadioButton(String,short) or unchooseCheckBox(String,short) instead. |
Document |
Document.unchooseCheckBox(String labelRegex,
short labelPosition)
Deselects the checkbox who's label is matched by the specified (case-insensitive) regular expression.
|
Document |
Document.unchooseRadioButton(String labelRegex,
short labelPosition)
Deselects the radiobutton who's label is matched by the specified (case-insensitive) regular expression.
|
Document |
UserAgent.visit(String url)
Directs the UserAgent to visit the specified url (ie, sends an HTTP GET request); UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
|
Document |
UserAgent.visit(String url,
int redirectCount)
Directs the UserAgent to visit the specified url (ie, to send an HTTP GET request); UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
|
Modifier and Type | Method and Description |
---|---|
Document |
Form.submit()
Submits the the form without pressing any particular submit button; no name-value pair contribution from any submit button is added to the query string.
|
Document |
Form.submit(int submitButtonIndex)
Submits the the form by pressing the submit button specified by its index, with indexing starting at 0 for the first submit button, throwing a NotFound Exception if the specified submitButton is not found.
|
Document |
Form.submit(String valueRx)
Submits the the form by pressing the first submit button who's value (ie, text label) matches the specified (case-insensitive) regular expression (using Matcher.matches) and throws an Exception if the specified submitButton does not exist.
|
Constructor and Description |
---|
Form(Element formElement,
List<Element> componentElements,
Document doc,
UserAgent userAgent) |