Uses of Interface
org.htmlunit.Page
-
Packages that use Page Package Description org.htmlunit Framework classes (contains theWebClientclass which is the main entry point).org.htmlunit.attachment Attachment-related classes.org.htmlunit.html Classes specific to HTML pages, particularly theHtmlPagewhich represents an HTML document and provides access to its content.org.htmlunit.xml Classes specific to XML pages. -
-
Uses of Page in org.htmlunit
Classes in org.htmlunit that implement Page Modifier and Type Class Description classAbstractPageA basicPageimplementation.classSgmlPageA basic class of Standard Generalized Markup Language (SGML), e.g.classTextPageA generic page that will be returned for any text related content.classUnexpectedPageA generic page that is returned whenever an unexpected content type is returned by the server.Methods in org.htmlunit with type parameters of type Page Modifier and Type Method Description <P extends Page>
PWebClient. getPage(java.lang.String url)Convenient method to build a URL and load it into the current WebWindow as it would be done byWebClient.getPage(WebWindow, WebRequest).<P extends Page>
PWebClient. getPage(java.net.URL url)Convenient 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 Page Modifier and Type Method Description PageDefaultPageCreator. createPage(WebResponse webResponse, WebWindow webWindow)Create a Page object for the specified web response.PagePageCreator. createPage(WebResponse webResponse, WebWindow webWindow)Create a Page object for the specified web response.PageWebWindow. getEnclosedPage()Returns the currently loaded page or null if no page has been loaded.PageWebWindowImpl. getEnclosedPage()Returns the currently loaded page or null if no page has been loaded.PageWebWindowEvent. getNewPage()Returns the oldPage.PageWebWindowEvent. getOldPage()Returns the oldPage.PageWebClient. loadWebResponseInto(WebResponse webResponse, WebWindow webWindow)Creates a page based on the specified response and inserts it into the specified window.PageWebClient. loadWebResponseInto(WebResponse webResponse, WebWindow webWindow, boolean forceAttachment)INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.Methods in org.htmlunit with parameters of type Page Modifier and Type Method Description protected org.htmlunit.History.HistoryEntryHistory. addPage(Page page)Adds a new page to the navigation history.java.util.Map<java.lang.String,java.lang.String>StorageHolder. getStore(StorageHolder.Type storageType, Page page)Gets the store of the give type for the page.voidAlertHandler. handleAlert(Page page, java.lang.String message)Handle an alert for the given page.voidCollectingAlertHandler. handleAlert(Page page, java.lang.String message)Handles the alert.booleanConfirmHandler. handleConfirm(Page page, java.lang.String message)Handles a confirm for the specified page.booleanOnbeforeunloadHandler. handleEvent(Page page, java.lang.String returnValue)Handles anonbeforeunloadevent for the specified page.java.lang.StringPromptHandler. handlePrompt(Page page, java.lang.String message, java.lang.String defaultValue)Handle a call to Window.prompt() for the given page.voidImmediateRefreshHandler. handleRefresh(Page page, java.net.URL url, int seconds)Immediately refreshes the specified page using the specified URL.voidNiceRefreshHandler. handleRefresh(Page page, java.net.URL url, int requestedWait)Refreshes the specified page using the specified URL immediately if therequestedWaitis not larger than themaxDelay.voidRefreshHandler. handleRefresh(Page page, java.net.URL url, int seconds)Refreshes the specified page using the specified URL after the specified number of seconds.voidThreadedRefreshHandler. handleRefresh(Page page, java.net.URL url, int seconds)Refreshes the specified page using the specified URL after the specified number of seconds.voidWaitingRefreshHandler. handleRefresh(Page page, java.net.URL url, int requestedWait)Refreshes the specified page using the specified URL after the specified number of seconds.voidWebClient. 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.voidWebClient. 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 booleanDialogWindow. isJavaScriptInitializationNeeded(Page page)Returnstrueif this window needs JavaScript initialization to occur when the enclosed page is set.protected booleanTopLevelWindow. isJavaScriptInitializationNeeded(Page page)Returnstrueif this window needs JavaScript initialization to occur when the enclosed page is set.protected abstract booleanWebWindowImpl. isJavaScriptInitializationNeeded(Page page)Returnstrueif this window needs JavaScript initialization to occur when the enclosed page is set.voidWebWindow. setEnclosedPage(Page page)Sets the currently loaded page.voidWebWindowImpl. setEnclosedPage(Page page)Sets the currently loaded page.voidStatusHandler. statusMessageChanged(Page page, java.lang.String message)Handles a change towindow.status.Constructors in org.htmlunit with parameters of type Page Constructor Description WebWindowEvent(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 Page Modifier and Type Method Description PageAttachment. getPage()Returns the attached page.Methods in org.htmlunit.attachment with parameters of type Page Modifier and Type Method Description voidAttachmentHandler. handleAttachment(Page page)Handles the specified attached page.voidCollectingAttachmentHandler. handleAttachment(Page page)Handles the specified attached page.Constructors in org.htmlunit.attachment with parameters of type Page Constructor Description Attachment(Page page)Creates a new attachment for the specified page. -
Uses of Page in org.htmlunit.html
Classes in org.htmlunit.html that implement Page Modifier and Type Class Description classHtmlPageA representation of an HTML page returned from a server.classXHtmlPageA representation of an XHTML page returned from a server.Methods in org.htmlunit.html with type parameters of type Page Modifier and Type Method Description <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>
PHtmlOption. 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>
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(java.lang.String optionValue, boolean isSelected)Sets the "selected" state of the specified option.<P extends Page>
PHtmlSelect. setSelectedAttribute(java.lang.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 Page Modifier and Type Method Description PageHtmlImage. click()Simulates clicking this element at the position(0, 0).PageHtmlImage. click(int x, int y)Simulates clicking this element at the specified position.PageHtmlImageInput. click()Submit the form that contains this input.PageBaseFrameElement. getEnclosedPage()Returns the currently loaded page in the enclosed window.PageDomElement. mouseDown()Simulates clicking the mouse on this element, returning the page which this element's window contains after the mouse click.PageDomElement. 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.PageHtmlOption. mouseDown(boolean shiftKey, boolean ctrlKey, boolean altKey, int button)Selects the option if it's not already selected.PageDomElement. mouseMove()Simulates moving the mouse over this element, returning the page which this element's window contains after the mouse move.PageDomElement. 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.PageDomElement. mouseOut()Simulates moving the mouse out of this element, returning the page which this element's window contains after the mouse move.PageDomElement. 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.PageDomElement. mouseOver()Simulates moving the mouse over this element, returning the page which this element's window contains after the mouse move.PageDomElement. 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.PageHtmlOption. 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.PageDomElement. mouseUp()Simulates releasing the mouse click on this element, returning the page which this element's window contains after the mouse click release.PageDomElement. 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.PageHtmlOption. mouseUp(boolean shiftKey, boolean ctrlKey, boolean altKey, int button)Selects the option if it's not already selected.PageHtmlAnchor. 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.PageHtmlPage. refresh()Refreshes the page by sending the same parameters as previously sent to get this page.PageHtmlForm. reset()Resets this form to its initial values, returning the page contained by this form's window after the reset.PageDomElement. rightClick()Simulates right clicking the mouse on this element, returning the page which this element's window contains after the mouse click.PageDomElement. 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.PageHtmlCheckBoxInput. setChecked(boolean isChecked)Sets thecheckedattribute, returning the page that occupies this input's window after setting the attribute.PageHtmlInput. setChecked(boolean isChecked)Sets thecheckedattribute, returning the page that occupies this input's window after setting the attribute.PageHtmlRadioButtonInput. setChecked(boolean isChecked)Sets thecheckedattribute.PageHtmlOption. setSelected(boolean selected)Sets the selected state of this option.PageHtmlElement. type(char c)Simulates typing the specified character while this element has focus, returning the page contained by this element's window after typing.PageHtmlElement. 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.PageHtmlElement. type(Keyboard keyboard)Simulates typing the specifiedKeyboardwhile this element has focus, returning the page contained by this element's window after typing.Methods in org.htmlunit.html with parameters of type Page Modifier and Type Method Description protected booleanFrameWindow. isJavaScriptInitializationNeeded(Page page)Returnstrueif this window needs JavaScript initialization to occur when the enclosed page is set.voidFrameWindow. setEnclosedPage(Page page)Sets the currently loaded page. -
Uses of Page in org.htmlunit.xml
Classes in org.htmlunit.xml that implement Page Modifier and Type Class Description classXmlPageA page that will be returned for response with content type "text/xml".
-