org.encog.bot.browse
public class Browser extends Object
Constructor and Description |
---|
Browser() |
Modifier and Type | Method and Description |
---|---|
WebPage |
getCurrentPage() |
void |
navigate(Form form)
Navigate to the specified form by performing a submit of that form.
|
void |
navigate(Form form,
Input submit)
Navigate based on a form.
|
void |
navigate(Link link)
Navigate to a new page based on a link.
|
void |
navigate(String url)
Navigate based on a string URL.
|
void |
navigate(URL url)
Navigate to a page based on a URL object.
|
void |
navigate(URL url,
InputStream is)
Navigate to a page and post the specified data.
|
void |
setCurrentPage(WebPage theCurrentPage)
Set the current page.
|
String |
toString() |
public final WebPage getCurrentPage()
public final void navigate(Form form)
form
- The form to be submitted.public final void navigate(Form form, Input submit)
form
- The form to be posted.submit
- The submit button on the form to simulate clicking.public final void navigate(Link link)
link
- The link to navigate to.public final void navigate(String url)
url
- The URL to navigate to.public final void navigate(URL url)
url
- The URL to navigate to.public final void navigate(URL url, InputStream is)
url
- The URL to post the data to.is
- The data to post to the page.public final void setCurrentPage(WebPage theCurrentPage)
theCurrentPage
- The current page.Copyright © 2014. All Rights Reserved.