Uses of Class
org.htmlunit.html.HtmlPage
Packages that use HtmlPage
Package
Description
Provides abstract super classes for different types of actions.
Provides the base classes for Java test cases which were created by the Script Developer while exporting script test cases.
Provides various utility classes to make writing test cases easier.
Provides some standard validator implementations.
Framework classes (contains the
WebClient
class which is the main entry point).Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content.-
Uses of HtmlPage in com.xceptance.xlt.api.actions
Methods in com.xceptance.xlt.api.actions that return HtmlPageModifier and TypeMethodDescriptionAbstractHtmlPageAction.getHtmlPage()Returns the parsed HTML page object generated by this action.Methods in com.xceptance.xlt.api.actions with parameters of type HtmlPageModifier and TypeMethodDescriptionvoidAbstractHtmlPageAction.setHtmlPage(HtmlPage htmlPage) Sets the given HTML page object to be the result of this action.voidAbstractHtmlPageAction.setHtmlPage(HtmlPage htmlPage, long waitingTime) Sets the given HTML page object to be the result of this action and waits for background task to be finished. -
Uses of HtmlPage in com.xceptance.xlt.api.engine.scripting
Methods in com.xceptance.xlt.api.engine.scripting that return HtmlPageModifier and TypeMethodDescriptionprotected HtmlPageAbstractHtmlUnitCommandsModule.addSelection(String select, String option) Adds the given option of the given select to the current selection.protected HtmlPageAbstractHtmlUnitScriptAction.addSelection(String select, String option) Adds the given option of the given select to the current selection.protected HtmlPageChecks/toggles the given element.protected HtmlPageChecks/toggles the given element.protected HtmlPageAbstractHtmlUnitCommandsModule.checkAndWait(String elementLocator) Checks/toggles the given element and waits for some activity to complete.protected HtmlPageAbstractHtmlUnitScriptAction.checkAndWait(String elementLocator) Checks/toggles the given element and waits for some activity to complete.protected HtmlPageClicks the given element.protected HtmlPageClicks the given element.protected HtmlPageAbstractHtmlUnitCommandsModule.clickAndWait(String elementLocator) Clicks the given element and waits for some activity to complete.protected HtmlPageAbstractHtmlUnitScriptAction.clickAndWait(String elementLocator) Clicks the given element and waits for some activity to complete.protected HtmlPageAbstractHtmlUnitCommandsModule.contextMenu(String elementLocator) Simulates a right-click on the given element.protected HtmlPageAbstractHtmlUnitScriptAction.contextMenu(String elementLocator) Simulates a right-click on the given element.protected HtmlPageAbstractHtmlUnitCommandsModule.contextMenuAt(String elementLocator, int coordX, int coordY) Simulates a right-click at the given coordinates (relative to the given element).protected HtmlPageAbstractHtmlUnitCommandsModule.contextMenuAt(String elementLocator, String coordinates) Simulates a right-click at the given coordinates (relative to the given element).protected HtmlPageAbstractHtmlUnitScriptAction.contextMenuAt(String elementLocator, int coordX, int coordY) Simulates a right-click at the given coordinates (relative to the given element).protected HtmlPageAbstractHtmlUnitScriptAction.contextMenuAt(String elementLocator, String coordinates) Simulates a right-click at the given coordinates (relative to the given element).protected HtmlPageAbstractHtmlUnitCommandsModule.doubleClick(String elementLocator) Double-clicks the given element.protected HtmlPageAbstractHtmlUnitScriptAction.doubleClick(String elementLocator) Double-clicks the given element.protected HtmlPageAbstractHtmlUnitCommandsModule.doubleClickAndWait(String elementLocator) Double-clicks the given element and waits for a page to be loaded.protected HtmlPageAbstractHtmlUnitScriptAction.doubleClickAndWait(String elementLocator) Double-clicks the given element and waits for a page to be loaded.protected abstract HtmlPageExecutes the module steps.protected HtmlPagePresses the left mouse button on an element, but does not release the button yet.protected HtmlPagePresses the left mouse button on an element, but does not release the button yet.protected HtmlPageAbstractHtmlUnitCommandsModule.mouseDownAt(String elementLocator, int coordX, int coordY) Presses the left mouse button at the given coordinates (relative to the given element), but does not release the button yet.protected HtmlPageAbstractHtmlUnitCommandsModule.mouseDownAt(String elementLocator, String coordinates) Presses the left mouse button at the given coordinates (relative to the given element), but does not release the button yet.protected HtmlPageAbstractHtmlUnitScriptAction.mouseDownAt(String elementLocator, int coordX, int coordY) Presses the left mouse button at the given coordinates (relative to the given element), but does not release the button yet.protected HtmlPageAbstractHtmlUnitScriptAction.mouseDownAt(String elementLocator, String coordinates) Presses the left mouse button at the given coordinates (relative to the given element), but does not release the button yet.protected HtmlPageMoves the mouse to the given element.protected HtmlPageMoves the mouse to the given element.protected HtmlPageAbstractHtmlUnitCommandsModule.mouseMoveAt(String elementLocator, int coordX, int coordY) Moves the mouse to the given coordinates (relative to the given element).protected HtmlPageAbstractHtmlUnitCommandsModule.mouseMoveAt(String elementLocator, String coordinates) Moves the mouse to the given coordinates (relative to the given element).protected HtmlPageAbstractHtmlUnitScriptAction.mouseMoveAt(String elementLocator, int coordX, int coordY) Moves the mouse to the given coordinates (relative to the given element).protected HtmlPageAbstractHtmlUnitScriptAction.mouseMoveAt(String elementLocator, String coordinates) Moves the mouse to the given coordinates (relative to the given element).protected HtmlPageMoves the mouse out of the element's bounding box.protected HtmlPageMoves the mouse out of the element's bounding box.protected HtmlPageHovers the mouse over an element.protected HtmlPageHovers the mouse over an element.protected HtmlPageReleases the left mouse button on an element.protected HtmlPageReleases the left mouse button on an element.protected HtmlPageReleases the left mouse button at the given coordinates (relative to the given element).protected HtmlPageReleases the left mouse button at the given coordinates (relative to the given element).protected HtmlPageReleases the left mouse button at the given coordinates (relative to the given element).protected HtmlPageReleases the left mouse button at the given coordinates (relative to the given element).protected HtmlPageOpens the given URL.protected HtmlPageOpens the given URL.protected HtmlPageOpens the given URL.protected HtmlPageOpens the given URL.protected HtmlPageAbstractHtmlUnitCommandsModule.pause(long waitingTime) Waits the given time.protected HtmlPageWaits the given time.protected HtmlPageAbstractHtmlUnitScriptAction.pause(long waitingTime) Waits the given time.protected HtmlPageWaits the given time.protected HtmlPageAbstractHtmlUnitCommandsModule.removeSelection(String select, String option) Removes the given option of the given select from the current selection.protected HtmlPageAbstractHtmlUnitScriptAction.removeSelection(String select, String option) Removes the given option of the given select from the current selection.Runs the module.protected HtmlPageSelects the given option of the given select.protected HtmlPageSelects the given option of the given select.protected HtmlPageAbstractHtmlUnitCommandsModule.selectAndWait(String select, String option) Selects the given option of the given select and waits for some activity to complete.protected HtmlPageAbstractHtmlUnitScriptAction.selectAndWait(String select, String option) Selects the given option of the given select and waits for some activity to complete.protected HtmlPageAbstractHtmlUnitCommandsModule.selectFrame(String frameTarget) Selects the given frame.protected HtmlPageAbstractHtmlUnitScriptAction.selectFrame(String frameTarget) Selects the given frame.protected HtmlPageAbstractHtmlUnitCommandsModule.selectWindow()Selects the top-level window.protected HtmlPageAbstractHtmlUnitCommandsModule.selectWindow(String windowTarget) Selects the given window.protected HtmlPageAbstractHtmlUnitScriptAction.selectWindow()Selects the top-level window.protected HtmlPageAbstractHtmlUnitScriptAction.selectWindow(String windowTarget) Selects the given window.protected HtmlPageSubmits the given form.protected HtmlPageSubmits the given form.protected HtmlPageAbstractHtmlUnitCommandsModule.submitAndWait(String form) Submits the given form and waits for some activity to complete.protected HtmlPageAbstractHtmlUnitScriptAction.submitAndWait(String form) Submits the given form and waits for some activity to complete.protected HtmlPageTypes the given text into the given input field.protected HtmlPageTypes the given text into the given input field.protected HtmlPageAbstractHtmlUnitCommandsModule.typeAndWait(String elementLocator, String text) Types the given text into the given input field and waits for some activity to complete.protected HtmlPageAbstractHtmlUnitScriptAction.typeAndWait(String elementLocator, String text) Types the given text into the given input field and waits for some activity to complete.protected HtmlPageUnchecks the given checkbox/radio button.protected HtmlPageUnchecks the given checkbox/radio button.protected HtmlPageAbstractHtmlUnitCommandsModule.uncheckAndWait(String elementLocator) Unchecks the given checkbox/radio button and waits for a page load.protected HtmlPageAbstractHtmlUnitScriptAction.uncheckAndWait(String elementLocator) Unchecks the given checkbox/radio button and waits for a load.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForAttribute(String attributeLocator, String textPattern) Waits until the value of the attribute identified by the given attribute locator matches the given text pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForAttribute(String elementLocator, String attributeName, String textPattern) Waits until the value of the given element and attribute matches the given text pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForAttribute(String attributeLocator, String textPattern) Waits until the value of the attribute identified by the given attribute locator matches the given text pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForAttribute(String elementLocator, String attributeName, String textPattern) Waits until the value of the given element and attribute matches the given text pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForChecked(String elementLocator) Waits until the given checkbox/radio button becomes checked.protected HtmlPageAbstractHtmlUnitScriptAction.waitForChecked(String elementLocator) Waits until the given checkbox/radio button becomes checked.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForClass(String elementLocator, String clazzString) Waits until the given element has the given class(es).protected HtmlPageAbstractHtmlUnitScriptAction.waitForClass(String elementLocator, String clazzString) Waits until the given element has the given class(es).protected HtmlPageAbstractHtmlUnitCommandsModule.waitForElementCount(String elementLocator, int count) Waits until the number of elements found by using the given element locator is equal to the given count.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForElementCount(String elementLocator, String count) Waits until the number of elements found by using the given element locator is equal to the given count.protected HtmlPageAbstractHtmlUnitScriptAction.waitForElementCount(String elementLocator, int count) Waits until the number of elements found by using the given element locator is equal to the given count.protected HtmlPageAbstractHtmlUnitScriptAction.waitForElementCount(String elementLocator, String count) Waits until the number of elements found by using the given element locator is equal to the given count.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForElementPresent(String elementLocator) Waits for the given element to appear.protected HtmlPageAbstractHtmlUnitScriptAction.waitForElementPresent(String elementLocator) Waits for the given element to appear.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForEval(String expression, String textPattern) Waits until the result of evaluating the given expression matches the given text pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForEval(String expression, String textPattern) Waits until the result of evaluating the given expression matches the given text pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotAttribute(String attributeLocator, String textPattern) Waits until the value of the attribute identified by the given attribute locator does NOT match the given text pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotAttribute(String elementLocator, String attributeName, String textPattern) Waits until the value of the given element and attribute does NOT match the given text pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotAttribute(String attributeLocator, String textPattern) Waits until the value of the attribute identified by the given attribute locator does NOT match the given text pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotAttribute(String elementLocator, String attributeName, String textPattern) Waits until the value of the given element and attribute does NOT match the given text pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotChecked(String elementLocator) Waits until the given checkbox/radio button becomes unchecked.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotChecked(String elementLocator) Waits until the given checkbox/radio button becomes unchecked.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotClass(String elementLocator, String clazzString) Waits until the given element doesn't have the given class(es).protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotClass(String elementLocator, String clazzString) Waits until the given element doesn't have the given class(es).protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotElementCount(String elementLocator, int count) Waits until the number of elements found by using the given element locator is unequal to the given count.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotElementCount(String elementLocator, String count) Waits until the number of elements found by using the given element locator is unequal to the given count.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotElementCount(String elementLocator, int count) Waits until the number of elements found by using the given element locator is unequal to the given count.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotElementCount(String elementLocator, String count) Waits until the number of elements found by using the given element locator is unequal to the given count.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotElementPresent(String elementLocator) Waits for the given element to disappear.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotElementPresent(String elementLocator) Waits for the given element to disappear.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotEval(String expression, String textPattern) Waits until the result of evaluating the given expression does NOT match the given text pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotEval(String expression, String textPattern) Waits until the result of evaluating the given expression does NOT match the given text pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotSelectedId(String selectLocator, String idPattern) Waits until no ID of all selected options of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotSelectedId(String selectLocator, String idPattern) Waits until no ID of all selected options of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotSelectedIndex(String selectLocator, String indexPattern) Waits until the option of the given select element at the given index is not selected.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotSelectedIndex(String selectLocator, String indexPattern) Waits until the option of the given select element at the given index is not selected.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotSelectedLabel(String selectLocator, String labelPattern) Waits until no label of all selected options of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotSelectedLabel(String selectLocator, String labelPattern) Waits until no label of all selected options of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotSelectedValue(String selectLocator, String valuePattern) Waits until no value of all selected options of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotSelectedValue(String selectLocator, String valuePattern) Waits until no value of all selected options of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotStyle(String elementLocator, String styleText) Waits until the effective style of the element identified by the given element locator does NOT match the given style.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotStyle(String elementLocator, String styleText) Waits until the effective style of the element identified by the given element locator does NOT match the given style.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotText(String elementLocator, String text) Waits for the given text embedded in the given element to disappear/change.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotText(String elementLocator, String text) Waits for the given text embedded in the given element to disappear/change.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotTextPresent(String text) Waits for the given text to disappear/change.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotTextPresent(String text) Waits for the given text to disappear/change.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotTitle(String title) Waits for the given page title change.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotTitle(String title) Waits for the given title change.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotValue(String elementLocator, String value) Waits for the given value in the given element to disappear/change.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotVisible(String elementLocator) Waits until the given element becomes invisible.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotVisible(String elementLocator) Waits for the given element to become invisible.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotXpathCount(String xpath, int count) Waits for the number of elements matching the given XPath expression change to a different value than the given one.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForNotXpathCount(String xpath, String count) Waits for the number of elements matching the given XPath expression change to a different value than the given one.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotXpathCount(String xpath, int count) Waits for the number of elements matching the given XPath expression change to a different value than the given one.protected HtmlPageAbstractHtmlUnitScriptAction.waitForNotXpathCount(String xpath, String count) Waits for the number of elements matching the given XPath expression change to a different value than the given one.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForPageToLoad()Waits for the page to load.protected HtmlPageAbstractHtmlUnitScriptAction.waitForPageToLoad()Waits for the page to load.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForSelectedId(String selectLocator, String idPattern) Waits until the ID of at least one selected option of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForSelectedId(String selectLocator, String idPattern) Waits until the ID of at least one selected option of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForSelectedIndex(String selectLocator, String indexPattern) Waits until the option of the given select element at the given index is selected.protected HtmlPageAbstractHtmlUnitScriptAction.waitForSelectedIndex(String selectLocator, String indexPattern) Waits until the option of the given select element at the given index is selected.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForSelectedLabel(String selectLocator, String labelPattern) Waits until the label of at least one selected option of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForSelectedLabel(String selectLocator, String labelPattern) Waits until the label of at least one selected option of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForSelectedValue(String selectLocator, String valuePattern) Waits until the value of at least one selected option of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitScriptAction.waitForSelectedValue(String selectLocator, String valuePattern) Waits until the value of at least one selected option of the given select element matches the given pattern.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForStyle(String elementLocator, String styleText) Waits until the effective style of the element identified by the given element locator matches the given style.protected HtmlPageAbstractHtmlUnitScriptAction.waitForStyle(String elementLocator, String styleText) Waits until the effective style of the element identified by the given element locator matches the given style.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForText(String elementLocator, String text) Waits for the given text embedded in the given element.protected HtmlPageAbstractHtmlUnitScriptAction.waitForText(String elementLocator, String text) Waits for the given text embedded in the given element.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForTextPresent(String text) Waits for the given text to appear.protected HtmlPageAbstractHtmlUnitScriptAction.waitForTextPresent(String text) Waits for the given text to appear.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForTitle(String title) Waits for the given page title.protected HtmlPageAbstractHtmlUnitScriptAction.waitForTitle(String title) Waits for the given title.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForValue(String elementLocator, String valuePattern) Waits for the given value in the given element.protected HtmlPageAbstractHtmlUnitScriptAction.waitForValue(String elementLocator, String value) Waits for the given value in the given element.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForVisible(String elementLocator) Waits until the given element becomes visible.protected HtmlPageAbstractHtmlUnitScriptAction.waitForVisible(String elementLocator) Waits until the given element becomes visible.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForXpathCount(String xpath, int count) Waits for the number of elements matching the given XPath expression is equal to the given count.protected HtmlPageAbstractHtmlUnitCommandsModule.waitForXpathCount(String xpath, String count) Waits for the number of elements matching the given XPath expression is equal to the given count.protected HtmlPageAbstractHtmlUnitScriptAction.waitForXpathCount(String xpath, int count) Waits for the number of elements matching the given XPath expression is equal to the given count.protected HtmlPageAbstractHtmlUnitScriptAction.waitForXpathCount(String xpath, String count) Waits for the number of elements matching the given XPath expression is equal to the given count.Methods in com.xceptance.xlt.api.engine.scripting with parameters of type HtmlPage -
Uses of HtmlPage in com.xceptance.xlt.api.util
Methods in com.xceptance.xlt.api.util that return HtmlPageModifier and TypeMethodDescriptionstatic HtmlPageHtmlPageUtils.getFramePage(HtmlPage page, String... frameNames) Returns the HTML page contained in a nested frame window.Methods in com.xceptance.xlt.api.util with parameters of type HtmlPageModifier and TypeMethodDescriptionstatic intHtmlPageUtils.countElementsByXPath(HtmlPage page, String xpath) Returns the number of elements that match the given XPath expression.static <T extends HtmlElement>
List<T> HtmlPageUtils.findHtmlElements(HtmlPage page, String xpath) Finds HTML elements using the given XPath expression on the specified page.static <T> THtmlPageUtils.findHtmlElementsAndPickOne(HtmlPage page, String xpath) Finds HTML elements using the given XPath expression on the specified page, selects one of them randomly and returns it.static <T> THtmlPageUtils.findHtmlElementsAndPickOne(HtmlPage page, String xpath, boolean excludeFirst) Finds HTML elements using the given XPath expression on the specified page, selects one of them randomly and returns it.static <T extends HtmlElement>
THtmlPageUtils.findHtmlElementsAndPickOne(HtmlPage page, String xpath, boolean excludeFirst, boolean excludeLast) Finds HTML elements using the given XPath expression on the specified page, selects one of them randomly and returns it.static <T extends HtmlElement>
THtmlPageUtils.findSingleHtmlElementByID(HtmlPage page, String id) Finds the HTML element with the given ID on the specified page.static <T extends HtmlElement>
THtmlPageUtils.findSingleHtmlElementByXPath(HtmlPage page, String xpath) Finds a single HTML elements using the given XPath expression on the specified page.static HtmlAnchorHtmlPageUtils.getAnchorWithText(HtmlPage page, String anchorText) Returns the HTML anchor element with the passed anchor text.HtmlPageUtils.getFormsByIDRegExp(HtmlPage page, Pattern pattern) Returns a list of forms the ID of which matches the given regular expression.HtmlPageUtils.getFormsByNameRegExp(HtmlPage page, Pattern pattern) Returns a list of forms the name of which matches the given regular expression.static HtmlPageHtmlPageUtils.getFramePage(HtmlPage page, String... frameNames) Returns the HTML page contained in a nested frame window.static booleanHtmlPageUtils.isElementPresent(HtmlPage page, String xpath) Returns whether or not a HTML element exists for the given XPath expression.static <T extends HtmlElement>
List<T> HtmlPageUtils.waitForHtmlElements(HtmlPage page, String xpath, long timeout) Waits until at least one HTML element can be located on the given page using the specified XPath expression and returns the list of matching elements. -
Uses of HtmlPage in com.xceptance.xlt.api.validators
Methods in com.xceptance.xlt.api.validators with parameters of type HtmlPageModifier and TypeMethodDescriptionvoidValidates the specified HTML page.voidValidates the specified HTML page.voidValidates the specified HTML page.voidThe most common validators grouped into one validator to simplify the integration.voidValidates the specified HTML page. -
Uses of HtmlPage in org.htmlunit
Methods in org.htmlunit that return HtmlPageModifier and TypeMethodDescriptionprotected HtmlPageDefaultPageCreator.createHtmlPage(WebResponse webResponse, WebWindow webWindow) Creates an HtmlPage for this WebResponse.ScriptException.getPage()Gets the HTML page in which the script error occurred.
Caution: this page may be only partially parsed if the exception occurred in a script executed at parsing time.WebClient.loadHtmlCodeIntoCurrentWindow(String htmlCode) Parses the given XHtml code string and loads the resulting XHtmlPage into the current window.Methods in org.htmlunit with parameters of type HtmlPageModifier and TypeMethodDescriptionstatic voidWebAssert.assertAllAccessKeyAttributesUnique(HtmlPage page) Many HTML components can have anaccesskeyattribute which defines a hot key for keyboard navigation.static voidWebAssert.assertAllIdAttributesUnique(HtmlPage page) Verifies that all element IDs in the specified page are unique.static voidWebAssert.assertAllTabIndexAttributesSet(HtmlPage page) Many HTML elements are "tabbable" and can have atabindexattribute that determines the order in which the components are navigated when pressing the tab key.static voidWebAssert.assertElementNotPresent(HtmlPage page, String id) Verifies that the specified page does not contain an element with the specified ID.static voidWebAssert.assertElementNotPresentByXPath(HtmlPage page, String xpath) Verifies that the specified page does not contain an element matching the specified XPath expression.static voidWebAssert.assertElementPresent(HtmlPage page, String id) Verifies that the specified page contains an element with the specified ID.static voidWebAssert.assertElementPresentByXPath(HtmlPage page, String xpath) Verifies that the specified page contains an element matching the specified XPath expression.static voidWebAssert.assertFormNotPresent(HtmlPage page, String name) Verifies that the specified page does not contain a form with the specified name.static voidWebAssert.assertFormPresent(HtmlPage page, String name) Verifies that the specified page contains a form with the specified name.static voidWebAssert.assertInputContainsValue(HtmlPage page, String name, String value) Verifies that the input element with the specified name on the specified page contains the specified value.static voidWebAssert.assertInputDoesNotContainValue(HtmlPage page, String name, String value) Verifies that the input element with the specified name on the specified page does not contain the specified value.static voidWebAssert.assertInputNotPresent(HtmlPage page, String name) Verifies that the specified page does not contain an input element with the specified name.static voidWebAssert.assertInputPresent(HtmlPage page, String name) Verifies that the specified page contains an input element with the specified name.static voidWebAssert.assertLinkNotPresent(HtmlPage page, String id) Verifies that the specified page does not contain a link with the specified ID.static voidWebAssert.assertLinkNotPresentWithText(HtmlPage page, String text) Verifies that the specified page does not contain a link with the specified text.static voidWebAssert.assertLinkPresent(HtmlPage page, String id) Verifies that the specified page contains a link with the specified ID.static voidWebAssert.assertLinkPresentWithText(HtmlPage page, String text) Verifies that the specified page contains a link with the specified text.static voidWebAssert.assertTextNotPresent(HtmlPage page, String text) Verifies that the specified page does not contain the specified text.static voidWebAssert.assertTextNotPresentInElement(HtmlPage page, String text, String id) Verifies that the element on the specified page which matches the specified ID does not contain the specified text.static voidWebAssert.assertTextPresent(HtmlPage page, String text) Verifies that the specified page contains the specified text.static voidWebAssert.assertTextPresentInElement(HtmlPage page, String text, String id) Verifies that the element on the specified page which matches the specified ID contains the specified text.static voidWebAssert.assertTitleContains(HtmlPage page, String titlePortion) Verifies that the specified page's title contains the specified substring.static voidWebAssert.assertTitleEquals(HtmlPage page, String title) Verifies that the specified page's title equals the specified expected title.static voidWebAssert.assertTitleMatches(HtmlPage page, String regex) Verifies that the specified page's title matches the specified regular expression.voidPrintHandler.handlePrint(HtmlPage page) Handle a call to Window.print().ScriptPreProcessor.preProcess(HtmlPage htmlPage, String sourceCode, String sourceName, int lineNumber, HtmlElement htmlElement) Pre process the specified source code in the context of the given page.booleanAjaxController.processSynchron(HtmlPage page, WebRequest request, boolean async) Gets notified of an AJAX call to determine how it should be processed.booleanNicelyResynchronizingAjaxController.processSynchron(HtmlPage page, WebRequest settings, boolean async) Resynchronizes calls performed from the thread where this instance has been created.Constructors in org.htmlunit with parameters of type HtmlPageModifierConstructorDescriptionScriptException(HtmlPage page, Throwable throwable) Creates an instance.ScriptException(HtmlPage page, Throwable throwable, String scriptSourceCode) Creates an instance. -
Uses of HtmlPage in org.htmlunit.html
Subclasses of HtmlPage in org.htmlunit.htmlModifier and TypeClassDescriptionclassA representation of an XHTML page returned from a server.Methods in org.htmlunit.html that return HtmlPageModifier and TypeMethodDescriptionprotected HtmlPageHtmlPage.clone()Creates a clone of this instance, and clears cached state to be not shared with the original.HtmlPage.cloneNode(boolean deep) FrameWindow.getEnclosingPage()Returns the HTML page in which the <frame> or <iframe> tag is contained for this frame window.DomNode.getHtmlPageOrNull()Returns the page that contains this node.HtmlPage.getPage()Returns the page that contains this node.Methods in org.htmlunit.html with parameters of type HtmlPageModifier and TypeMethodDescriptionElementFromPointHandler.getElementFromPoint(HtmlPage htmlPage, int x, int y) Returns the element for the specified x coordinate and the specified y coordinate.static URLHtmlAnchor.getTargetUrl(String href, HtmlPage page) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.