Uses of Interface
org.htmlunit.Page
Packages that use Page
Package
Description
Framework classes (contains the
WebClient
class which is the main entry point).Attachment-related classes.
Classes specific to HTML pages, particularly the
HtmlPage
which represents
an HTML document and provides access to its content.Classes specific to XML pages.
-
Uses of Page in org.htmlunit
Classes in org.htmlunit that implement PageModifier and TypeClassDescriptionclass
A basicPage
implementation.class
A basic class of Standard Generalized Markup Language (SGML), e.g.class
A generic page that will be returned for any text related content.class
A generic page that is returned whenever an unexpected content type is returned by the server.Methods in org.htmlunit with type parameters of type PageModifier and TypeMethodDescription<P extends Page>
PConvenient method to build a URL and load it into the current WebWindow as it would be done byWebClient.getPage(WebWindow, WebRequest)
.<P extends Page>
PConvenient method to load a URL into the current top WebWindow as it would be done byWebClient.getPage(WebWindow, WebRequest)
.<P extends Page>
PWebClient.getPage
(WebRequest request) Convenient method to load a web request into the current top WebWindow.<P extends Page>
PWebClient.getPage
(WebWindow webWindow, WebRequest webRequest) Send a request to a server and return a Page that represents the response from the server.Methods in org.htmlunit that return PageModifier and TypeMethodDescriptionDefaultPageCreator.createPage
(WebResponse webResponse, WebWindow webWindow) Create a Page object for the specified web response.PageCreator.createPage
(WebResponse webResponse, WebWindow webWindow) Create a Page object for the specified web response.WebWindow.getEnclosedPage()
Returns the currently loaded page or null if no page has been loaded.WebWindowImpl.getEnclosedPage()
Returns the currently loaded page or null if no page has been loaded.WebWindowEvent.getNewPage()
Returns the oldPage.WebWindowEvent.getOldPage()
Returns the oldPage.WebClient.loadWebResponseInto
(WebResponse webResponse, WebWindow webWindow) Creates a page based on the specified response and inserts it into the specified window.WebClient.loadWebResponseInto
(WebResponse webResponse, WebWindow webWindow, String forceAttachmentWithFilename) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.Methods in org.htmlunit with parameters of type PageModifier and TypeMethodDescriptionprotected org.htmlunit.History.HistoryEntry
Adds a new page to the navigation history.StorageHolder.getStore
(StorageHolder.Type storageType, Page page) Gets the store of the give type for the page.void
AlertHandler.handleAlert
(Page page, String message) Handle an alert for the given page.void
CollectingAlertHandler.handleAlert
(Page page, String message) Handles the alert.boolean
ConfirmHandler.handleConfirm
(Page page, String message) Handles a confirm for the specified page.boolean
OnbeforeunloadHandler.handleEvent
(Page page, String returnValue) Handles anonbeforeunload
event for the specified page.PromptHandler.handlePrompt
(Page page, String message, String defaultValue) Handle a call to Window.prompt() for the given page.void
ImmediateRefreshHandler.handleRefresh
(Page page, URL url, int seconds) Immediately refreshes the specified page using the specified URL.void
NiceRefreshHandler.handleRefresh
(Page page, URL url, int requestedWait) Refreshes the specified page using the specified URL immediately if therequestedWait
is not larger than themaxDelay
.void
RefreshHandler.handleRefresh
(Page page, URL url, int seconds) 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
WaitingRefreshHandler.handleRefresh
(Page page, URL url, int requestedWait) Refreshes the specified page using the specified URL after the specified number of seconds.void
WebClient.initialize
(WebWindow webWindow, Page page) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Initializes a new web window for JavaScript.void
WebClient.initializeEmptyWindow
(WebWindow webWindow, Page page) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Initializes a new empty window for JavaScript.protected boolean
DialogWindow.isJavaScriptInitializationNeeded
(Page page) Returnstrue
if this window needs JavaScript initialization to occur when the enclosed page is set.protected boolean
TopLevelWindow.isJavaScriptInitializationNeeded
(Page page) Returnstrue
if this window needs JavaScript initialization to occur when the enclosed page is set.protected abstract boolean
WebWindowImpl.isJavaScriptInitializationNeeded
(Page page) Returnstrue
if this window needs JavaScript initialization to occur when the enclosed page is set.void
WebWindow.setEnclosedPage
(Page page) Sets the currently loaded page.void
WebWindowImpl.setEnclosedPage
(Page page) Sets the currently loaded page.void
StatusHandler.statusMessageChanged
(Page page, String message) Handles a change towindow.status
.Constructors in org.htmlunit with parameters of type PageModifierConstructorDescriptionWebWindowEvent
(WebWindow webWindow, int type, Page oldPage, Page newPage) Creates an instance. -
Uses of Page in org.htmlunit.attachment
Methods in org.htmlunit.attachment that return PageMethods in org.htmlunit.attachment with parameters of type PageModifier and TypeMethodDescriptionvoid
AttachmentHandler.handleAttachment
(Page page, String attachmentFilename) Handles the specified attached page.void
CollectingAttachmentHandler.handleAttachment
(Page page, String attachmentFilename) Handles the specified attached page.void
DownloadingAttachmentHandler.handleAttachment
(Page page, String attachmentFilename) Handles the specified attached page.Constructors in org.htmlunit.attachment with parameters of type PageModifierConstructorDescriptionAttachment
(Page page) Creates a new attachment for the specified page.Attachment
(Page page, String attachmentFilename) Creates a new attachment for the specified page. -
Uses of Page in org.htmlunit.html
Classes in org.htmlunit.html that implement PageModifier and TypeClassDescriptionclass
A representation of an HTML page returned from a server.class
A representation of an XHTML page returned from a server.Methods in org.htmlunit.html with type parameters of type PageModifier and TypeMethodDescription<P extends Page>
PDomElement.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>
PDomElement.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>
PDomElement.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>
PDomElement.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.
Simulates clicking on this element, returning the page in the window that has the focus after the element has been clicked.<P extends Page>
PDomElement.click
(org.htmlunit.javascript.host.event.Event event, boolean shiftKey, boolean ctrlKey, boolean altKey, boolean ignoreVisibility) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Simulates clicking on this element, returning the page in the window that has the focus after the element has been clicked.<P extends Page>
PHtmlAnchor.click
(org.htmlunit.javascript.host.event.Event event, boolean shiftKey, boolean ctrlKey, boolean altKey, boolean ignoreVisibility) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Simulates clicking on this element, returning the page in the window that has the focus after the element has been clicked.<P extends Page>
PHtmlImageInput.click
(int x, int y) Simulate clicking this input with a pointing device.<P extends Page>
PHtmlImageInput.click
(org.htmlunit.javascript.host.event.Event event, boolean shiftKey, boolean ctrlKey, boolean altKey, boolean ignoreVisibility) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Simulates clicking on this element, returning the page in the window that has the focus after the element has been clicked.<P extends Page>
PHtmlLabel.click
(org.htmlunit.javascript.host.event.Event event, boolean shiftKey, boolean ctrlKey, boolean altKey, boolean ignoreVisibility) Clicks the label and propagates to the referenced element.<P extends Page>
PDomElement.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>
PDomElement.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>
PHtmlSelect.setSelectedAttribute
(String optionValue, boolean isSelected) Sets the "selected" state of the specified option.<P extends Page>
PHtmlSelect.setSelectedAttribute
(String optionValue, boolean isSelected, boolean invokeOnFocus) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Sets the "selected" state of the specified option.<P extends Page>
PHtmlSelect.setSelectedAttribute
(HtmlOption selectedOption, boolean isSelected) Sets the "selected" state of the specified option.<P extends Page>
PHtmlSelect.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.
Sets the "selected" state of the specified option.Methods in org.htmlunit.html that return PageModifier and TypeMethodDescriptionHtmlImage.click()
Simulates clicking this element at the position(0, 0)
.HtmlImage.click
(int x, int y) Simulates clicking this element at the specified position.HtmlImageInput.click()
Submit the form that contains this input.BaseFrameElement.getEnclosedPage()
Returns the currently loaded page in the enclosed window.DomElement.mouseDown()
Simulates clicking the mouse on this element, returning the page which this element's window contains after the mouse click.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.DomElement.mouseMove()
Simulates moving the mouse over this element, returning the page which this element's window contains after the mouse move.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.DomElement.mouseOut()
Simulates moving the mouse out of this element, returning the page which this element's window contains after the mouse move.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.DomElement.mouseOver()
Simulates moving the mouse over this element, returning the page which this element's window contains after the mouse move.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.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.DomElement.mouseUp()
Simulates releasing the mouse click on this element, returning the page which this element's window contains after the mouse click release.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.final 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.HtmlPage.refresh()
Refreshes the page by sending the same parameters as previously sent to get this page.HtmlForm.reset()
Resets this form to its initial values, returning the page contained by this form's window after the reset.DomElement.rightClick()
Simulates right clicking the mouse on this element, returning the page which this element's window contains after the mouse click.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.HtmlCheckBoxInput.setChecked
(boolean isChecked) Sets thechecked
attribute, returning the page that occupies this input's window after setting the attribute.HtmlInput.setChecked
(boolean isChecked) Sets thechecked
attribute, returning the page that occupies this input's window after setting the attribute.HtmlRadioButtonInput.setChecked
(boolean isChecked) Sets thechecked
attribute.HtmlOption.setSelected
(boolean selected) Sets the selected state of this option.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.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.Simulates typing the specifiedKeyboard
while this element has focus, returning the page contained by this element's window after typing.Methods in org.htmlunit.html with parameters of type PageModifier and TypeMethodDescriptionprotected boolean
FrameWindow.isJavaScriptInitializationNeeded
(Page page) Returnstrue
if this window needs JavaScript initialization to occur when the enclosed page is set.void
FrameWindow.setEnclosedPage
(Page page) Sets the currently loaded page. -
Uses of Page in org.htmlunit.xml
Classes in org.htmlunit.xml that implement PageModifier and TypeClassDescriptionclass
A page that will be returned for response with content type "text/xml".