Package | Description |
---|---|
org.htmlunit |
Framework classes (contains the
WebClient
class which is the main entry point). |
org.htmlunit.attachment |
Attachment-related classes.
|
org.htmlunit.html |
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content. |
org.htmlunit.html.impl |
Contains some implementation classes that have to be public to be used internally in different packages
but that shouldn't be used directly by HtmlUnit users.
|
org.htmlunit.javascript |
Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.background |
Classes relating to background JavaScript execution, which is usually triggered via
setTimeout() or setInterval() . |
org.htmlunit.javascript.host |
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.xml |
Classes specific to XML pages.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractPage
A basic
Page implementation. |
class |
SgmlPage
A basic class of Standard Generalized Markup Language (SGML), e.g.
|
class |
TextPage
A generic page that will be returned for any text related content.
|
class |
UnexpectedPage
A generic page that is returned whenever an unexpected content type is returned by the server.
|
Modifier and Type | Method and Description |
---|---|
<P extends Page> |
WebClient.getPage(String url)
Convenient method to build a URL and load it into the current WebWindow as it would be done
by
WebClient.getPage(WebWindow, WebRequest) . |
<P extends Page> |
WebClient.getPage(URL url)
Convenient method to load a URL into the current top WebWindow as it would be done
by
WebClient.getPage(WebWindow, WebRequest) . |
<P extends Page> |
WebClient.getPage(WebRequest request)
Convenient method to load a web request into the current top WebWindow.
|
<P extends Page> |
WebClient.getPage(WebWindow webWindow,
WebRequest webRequest)
Send a request to a server and return a Page that represents the
response from the server.
|
Modifier and Type | Method and Description |
---|---|
Page |
PageCreator.createPage(WebResponse webResponse,
WebWindow webWindow)
Create a Page object for the specified web response.
|
Page |
DefaultPageCreator.createPage(WebResponse webResponse,
WebWindow webWindow)
Create a Page object for the specified web response.
|
Page |
WebWindowImpl.getEnclosedPage()
Returns the currently loaded page or null if no page has been loaded.
|
Page |
WebWindow.getEnclosedPage()
Returns the currently loaded page or null if no page has been loaded.
|
Page |
WebWindowEvent.getNewPage()
Returns the oldPage.
|
Page |
WebWindowEvent.getOldPage()
Returns the oldPage.
|
Page |
WebClient.loadWebResponseInto(WebResponse webResponse,
WebWindow webWindow)
Creates a page based on the specified response and inserts it into the specified window.
|
Page |
WebClient.loadWebResponseInto(WebResponse webResponse,
WebWindow webWindow,
String forceAttachmentWithFilename)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Modifier and Type | Method and Description |
---|---|
protected org.htmlunit.History.HistoryEntry |
History.addPage(Page page)
Adds a new page to the navigation history.
|
Map<String,String> |
StorageHolder.getStore(StorageHolder.Type storageType,
Page page)
Gets the store of the give type for the page.
|
void |
CollectingAlertHandler.handleAlert(Page page,
String message)
Handles the alert.
|
void |
AlertHandler.handleAlert(Page page,
String message)
Handle an alert for the given page.
|
boolean |
ConfirmHandler.handleConfirm(Page page,
String message)
Handles a confirm for the specified page.
|
boolean |
OnbeforeunloadHandler.handleEvent(Page page,
String returnValue)
Handles an
onbeforeunload event for the specified page. |
String |
PromptHandler.handlePrompt(Page page,
String message,
String defaultValue)
Handle a call to Window.prompt() for the given page.
|
void |
WaitingRefreshHandler.handleRefresh(Page page,
URL url,
int requestedWait)
Refreshes the specified page using the specified URL after the specified number of seconds.
|
void |
ThreadedRefreshHandler.handleRefresh(Page page,
URL url,
int seconds)
Refreshes the specified page using the specified URL after the specified number
of seconds.
|
void |
RefreshHandler.handleRefresh(Page page,
URL url,
int seconds)
Refreshes the specified page using the specified URL after the specified number
of seconds.
|
void |
NiceRefreshHandler.handleRefresh(Page page,
URL url,
int requestedWait)
Refreshes the specified page using the specified URL immediately if the
requestedWait
is not larger than the maxDelay . |
void |
ImmediateRefreshHandler.handleRefresh(Page page,
URL url,
int seconds)
Immediately refreshes the specified page using the specified URL.
|
void |
WebClient.initialize(WebWindow webWindow,
Page page)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
void |
WebClient.initializeEmptyWindow(WebWindow webWindow,
Page page)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
protected abstract boolean |
WebWindowImpl.isJavaScriptInitializationNeeded(Page page)
Returns
true if this window needs JavaScript initialization to occur when the enclosed page is set. |
protected boolean |
TopLevelWindow.isJavaScriptInitializationNeeded(Page page)
Returns
true if this window needs JavaScript initialization to occur when the enclosed page is set. |
protected boolean |
DialogWindow.isJavaScriptInitializationNeeded(Page page)
Returns
true if this window needs JavaScript initialization to occur when the enclosed page is set. |
void |
WebWindowImpl.setEnclosedPage(Page page)
Sets the currently loaded page.
|
void |
WebWindow.setEnclosedPage(Page page)
Sets the currently loaded page.
|
void |
StatusHandler.statusMessageChanged(Page page,
String message)
Handles a change to
window.status . |
Constructor and Description |
---|
WebWindowEvent(WebWindow webWindow,
int type,
Page oldPage,
Page newPage)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
Page |
Attachment.getPage()
Returns the attached page.
|
Modifier and Type | Method and Description |
---|---|
void |
DownloadingAttachmentHandler.handleAttachment(Page page,
String attachmentFilename)
Handles the specified attached page.
|
void |
CollectingAttachmentHandler.handleAttachment(Page page,
String attachmentFilename)
Handles the specified attached page.
|
void |
AttachmentHandler.handleAttachment(Page page,
String attachmentFilename)
Handles the specified attached page.
|
Constructor and Description |
---|
Attachment(Page page)
Creates a new attachment for the specified page.
|
Attachment(Page page,
String attachmentFilename)
Creates a new attachment for the specified page.
|
Modifier and Type | Class and Description |
---|---|
class |
HtmlPage
A representation of an HTML page returned from a server.
|
class |
XHtmlPage
A representation of an XHTML page returned from a server.
|
Modifier and Type | Method and Description |
---|---|
<P extends Page> |
DomElement.click()
Simulates clicking on this element, returning the page in the window that has the focus
after the element has been clicked.
|
<P extends Page> |
DomElement.click(boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Simulates clicking on this element, returning the page in the window that has the focus
after the element has been clicked.
|
<P extends Page> |
DomElement.click(boolean shiftKey,
boolean ctrlKey,
boolean altKey,
boolean triggerMouseEvents)
Simulates clicking on this element, returning the page in the window that has the focus
after the element has been clicked.
|
<P extends Page> |
DomElement.click(boolean shiftKey,
boolean ctrlKey,
boolean altKey,
boolean triggerMouseEvents,
boolean handleFocus,
boolean ignoreVisibility,
boolean disableProcessLabelAfterBubbling)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
<P extends Page> |
HtmlLabel.click(Event event,
boolean shiftKey,
boolean ctrlKey,
boolean altKey,
boolean ignoreVisibility)
Clicks the label and propagates to the referenced element.
|
<P extends Page> |
HtmlImageInput.click(Event event,
boolean shiftKey,
boolean ctrlKey,
boolean altKey,
boolean ignoreVisibility)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
<P extends Page> |
HtmlAnchor.click(Event event,
boolean shiftKey,
boolean ctrlKey,
boolean altKey,
boolean ignoreVisibility)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
<P extends Page> |
DomElement.click(Event event,
boolean shiftKey,
boolean ctrlKey,
boolean altKey,
boolean ignoreVisibility)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
<P extends Page> |
HtmlImageInput.click(int x,
int y)
Simulate clicking this input with a pointing device.
|
<P extends Page> |
DomElement.dblClick()
Simulates double-clicking on this element, returning the page in the window that has the focus
after the element has been clicked.
|
<P extends Page> |
DomElement.dblClick(boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Simulates double-clicking on this element, returning the page in the window that has the focus
after the element has been clicked.
|
<P extends Page> |
HtmlSelect.setSelectedAttribute(HtmlOption selectedOption,
boolean isSelected)
Sets the "selected" state of the specified option.
|
<P extends Page> |
HtmlSelect.setSelectedAttribute(HtmlOption selectedOption,
boolean isSelected,
boolean invokeOnFocus,
boolean shiftKey,
boolean ctrlKey,
boolean isClick)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
<P extends Page> |
HtmlSelect.setSelectedAttribute(String optionValue,
boolean isSelected)
Sets the "selected" state of the specified option.
|
<P extends Page> |
HtmlSelect.setSelectedAttribute(String optionValue,
boolean isSelected,
boolean invokeOnFocus)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Modifier and Type | Method and Description |
---|---|
Page |
HtmlImageInput.click()
Submit the form that contains this input.
|
Page |
HtmlImage.click()
Simulates clicking this element at the position
(0, 0) . |
Page |
HtmlImage.click(int x,
int y)
Simulates clicking this element at the specified position.
|
Page |
BaseFrameElement.getEnclosedPage()
Returns the currently loaded page in the enclosed window.
|
Page |
DomElement.mouseDown()
Simulates clicking the mouse on this element, returning the page which this element's window contains
after the mouse click.
|
Page |
DomElement.mouseDown(boolean shiftKey,
boolean ctrlKey,
boolean altKey,
int button)
Simulates clicking the mouse on this element, returning the page which this element's window contains
after the mouse click.
|
Page |
DomElement.mouseMove()
Simulates moving the mouse over this element, returning the page which this element's window contains
after the mouse move.
|
Page |
DomElement.mouseMove(boolean shiftKey,
boolean ctrlKey,
boolean altKey,
int button)
Simulates moving the mouse over this element, returning the page which this element's window contains
after the mouse move.
|
Page |
DomElement.mouseOut()
Simulates moving the mouse out of this element, returning the page which this element's window contains
after the mouse move.
|
Page |
DomElement.mouseOut(boolean shiftKey,
boolean ctrlKey,
boolean altKey,
int button)
Simulates moving the mouse out of this element, returning the page which this element's window contains
after the mouse move.
|
Page |
DomElement.mouseOver()
Simulates moving the mouse over this element, returning the page which this element's window contains
after the mouse move.
|
Page |
HtmlOption.mouseOver(boolean shiftKey,
boolean ctrlKey,
boolean altKey,
int button)
Simulates moving the mouse over this element, returning the page which this element's window contains
after the mouse move.
|
Page |
DomElement.mouseOver(boolean shiftKey,
boolean ctrlKey,
boolean altKey,
int button)
Simulates moving the mouse over this element, returning the page which this element's window contains
after the mouse move.
|
Page |
DomElement.mouseUp()
Simulates releasing the mouse click on this element, returning the page which this element's window contains
after the mouse click release.
|
Page |
DomElement.mouseUp(boolean shiftKey,
boolean ctrlKey,
boolean altKey,
int button)
Simulates releasing the mouse click on this element, returning the page which this element's window contains
after the mouse click release.
|
Page |
HtmlAnchor.openLinkInNewWindow()
Open this link in a new window, much as web browsers do when you shift-click a link or use the context
menu to open in a new window.
|
Page |
HtmlPage.refresh()
Refreshes the page by sending the same parameters as previously sent to get this page.
|
Page |
HtmlForm.reset()
Resets this form to its initial values, returning the page contained by this form's window after the
reset.
|
Page |
DomElement.rightClick()
Simulates right clicking the mouse on this element, returning the page which this element's window
contains after the mouse click.
|
Page |
DomElement.rightClick(boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Simulates right clicking the mouse on this element, returning the page which this element's window
contains after the mouse click.
|
Page |
HtmlRadioButtonInput.setChecked(boolean isChecked)
Sets the
checked attribute. |
Page |
HtmlInput.setChecked(boolean isChecked)
Sets the
checked attribute, returning the page that occupies this input's window after setting
the attribute. |
Page |
HtmlCheckBoxInput.setChecked(boolean isChecked)
Sets the
checked attribute, returning the page that occupies this input's window after setting
the attribute. |
Page |
HtmlOption.setSelected(boolean selected)
Sets the selected state of this option.
|
Page |
HtmlElement.type(char c)
Simulates typing the specified character while this element has focus, returning the page contained
by this element's window after typing.
|
Page |
HtmlElement.type(int keyCode)
Simulates typing the specified key code while this element has focus, returning the page contained
by this element's window after typing.
|
Page |
HtmlElement.type(Keyboard keyboard)
Simulates typing the specified
Keyboard while this element has focus, returning the page contained
by this element's window after typing. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
FrameWindow.isJavaScriptInitializationNeeded(Page page)
Returns
true if this window needs JavaScript initialization to occur when the enclosed page is set. |
void |
FrameWindow.setEnclosedPage(Page page)
Sets the currently loaded page.
|
Modifier and Type | Method and Description |
---|---|
Page |
SelectableTextInput.getPage()
Returns the page which contains this element.
|
Modifier and Type | Method and Description |
---|---|
protected Page |
PostponedAction.getOwningPage()
Gets the owning page.
|
Modifier and Type | Method and Description |
---|---|
void |
JavaScriptEngine.initialize(WebWindow webWindow,
Page page)
Performs initialization for the given webWindow.
|
void |
AbstractJavaScriptEngine.initialize(WebWindow webWindow,
Page page)
Performs initialization for the given webWindow and page.
|
Constructor and Description |
---|
PostponedAction(Page owningPage,
String description)
C'tor.
|
Modifier and Type | Method and Description |
---|---|
int |
JavaScriptJobManager.addJob(JavaScriptJob job,
Page page)
Adds the specified job to this job manager, assigning it an ID.
|
Modifier and Type | Method and Description |
---|---|
void |
Window.initialize(Page enclosedPage)
Initialize the object.
|
void |
Window.initialize(WebWindow webWindow,
Page pageToEnclose)
Initializes this window.
|
void |
Location.initialize(Window window,
Page page)
Initializes this Location.
|
Modifier and Type | Class and Description |
---|---|
class |
XmlPage
A page that will be returned for response with content type "text/xml".
|
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.