Uses of Class
org.htmlunit.html.HtmlElement
Packages that use HtmlElement
Package
Description
Provides abstract super classes for different types of actions.
Provides various utility classes to make writing test cases easier.
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 HtmlElement in com.xceptance.xlt.api.actions
Methods in com.xceptance.xlt.api.actions with parameters of type HtmlElementModifier and TypeMethodDescriptionprotected void
AbstractHtmlPageAction.loadPageByClick
(HtmlElement element) Loads the page by "clicking" the passed HTML element.protected void
AbstractHtmlPageAction.loadPageByClick
(HtmlElement element, long waitingTime) Loads the page by "clicking" the passed HTML element.protected void
AbstractHtmlPageAction.loadPageByDragAndDrop
(HtmlElement draggable, HtmlElement dropTarget) Loads the page by drag and dropprotected void
AbstractHtmlPageAction.loadPageByDragAndDrop
(HtmlElement draggable, HtmlElement dropTarget, long waitingTime) Loads the page by drag and dropprotected void
AbstractHtmlPageAction.loadPageByTypingKeys
(HtmlElement element, String text) Loads the page by typing keys.protected void
AbstractHtmlPageAction.loadPageByTypingKeys
(HtmlElement element, String text, long waitingTime) Loads the page by typing keys. -
Uses of HtmlElement in com.xceptance.xlt.api.util
Methods in com.xceptance.xlt.api.util with type parameters of type HtmlElementModifier and TypeMethodDescriptionstatic <T extends HtmlElement>
THtmlPageUtils.createHtmlElement
(String tagName, HtmlElement parent) Creates a new HTML element with the specified tag name and adds it as a child to the given parent element.static <T extends HtmlElement>
List<T> HtmlPageUtils.findHtmlElements
(HtmlElement element, String xpath) Finds HTML elements using the given XPath expression within the specified HTML element.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 extends HtmlElement>
THtmlPageUtils.findHtmlElementsAndPickOne
(HtmlElement element, String xpath) Finds HTML elements using the given XPath expression within the specified HTML element, selects one of them randomly and returns it.static <T extends HtmlElement>
THtmlPageUtils.findHtmlElementsAndPickOne
(HtmlElement element, String xpath, boolean excludeFirst) Finds HTML elements using the given XPath expression within the specified HTML element, selects one of them randomly and returns it.static <T extends HtmlElement>
THtmlPageUtils.findHtmlElementsAndPickOne
(HtmlElement element, String xpath, boolean excludeFirst, boolean excludeLast) Finds HTML elements using the given XPath expression within the specified HTML element, 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
(HtmlElement element, String xpath) Finds a single HTML elements using the given XPath expression within the specified HTML element.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 <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.Methods in com.xceptance.xlt.api.util with parameters of type HtmlElementModifier and TypeMethodDescriptionstatic <T extends HtmlElement>
THtmlPageUtils.createHtmlElement
(String tagName, HtmlElement parent) Creates a new HTML element with the specified tag name and adds it as a child to the given parent element.static <T extends HtmlElement>
List<T> HtmlPageUtils.findHtmlElements
(HtmlElement element, String xpath) Finds HTML elements using the given XPath expression within the specified HTML element.static <T extends HtmlElement>
THtmlPageUtils.findHtmlElementsAndPickOne
(HtmlElement element, String xpath) Finds HTML elements using the given XPath expression within the specified HTML element, selects one of them randomly and returns it.static <T extends HtmlElement>
THtmlPageUtils.findHtmlElementsAndPickOne
(HtmlElement element, String xpath, boolean excludeFirst) Finds HTML elements using the given XPath expression within the specified HTML element, selects one of them randomly and returns it.static <T extends HtmlElement>
THtmlPageUtils.findHtmlElementsAndPickOne
(HtmlElement element, String xpath, boolean excludeFirst, boolean excludeLast) Finds HTML elements using the given XPath expression within the specified HTML element, selects one of them randomly and returns it.static <T extends HtmlElement>
THtmlPageUtils.findSingleHtmlElementByXPath
(HtmlElement element, String xpath) Finds a single HTML elements using the given XPath expression within the specified HTML element.static boolean
HtmlPageUtils.isElementPresent
(HtmlElement element, String xpath) Returns whether or not a HTML element exists for the given XPath expression. -
Uses of HtmlElement in org.htmlunit
Methods in org.htmlunit with parameters of type HtmlElementModifier and TypeMethodDescriptionScriptPreProcessor.preProcess
(HtmlPage htmlPage, String sourceCode, String sourceName, int lineNumber, HtmlElement htmlElement) Pre process the specified source code in the context of the given page. -
Uses of HtmlElement in org.htmlunit.html
Subclasses of HtmlElement in org.htmlunit.htmlModifier and TypeClassDescriptionclass
Base class for frame and iframe.class
Wrapper for the HTML element "abbr".class
Wrapper for the HTML element "acronym".class
Wrapper for the HTML element "address".class
Wrapper for the HTML element "a".class
Wrapper for the HTML element "area".class
Wrapper for the HTML element "article".class
Wrapper for the HTML element "aside".class
Wrapper for the HTML element "Audio".class
Wrapper for the HTML element "bgsound".class
Wrapper for the HTML element "base".class
Wrapper for the HTML element "basefont".class
Wrapper for the HTML element "bdi".class
Wrapper for the HTML element "bdo".class
Wrapper for the HTML element "big".class
Wrapper for the HTML element "blockquote".class
Wrapper for the HTML element "body".class
Wrapper for the HTML element "b".class
Wrapper for the HTML element "br".class
Wrapper for the HTML element "button".class
Wrapper for the HTML element "input" where type is "button".class
Wrapper for the HTML element "canvas".class
Wrapper for the HTML element "caption".class
Wrapper for the HTML element "center".class
Wrapper for the HTML element "input".class
Wrapper for the HTML element "cite".class
Wrapper for the HTML element "code".class
Wrapper for the HTML element "input" where type is "color".class
Wrapper for the HTML element "data".class
Wrapper for the HTML element "datalist".class
Wrapper for the HTML element "input" where type is "date".class
Wrapper for the HTML element "input" where type is "datetime-local".class
Wrapper for the HTML element "dfn".class
Wrapper for the HTML element "dd".class
Wrapper for the HTML element "dl".class
Wrapper for the HTML element "dt".class
Wrapper for the HTML element "del".class
Wrapper for the HTML element "details".class
Wrapper for the HTML element "dialog".class
Wrapper for the HTML element "dir".class
Wrapper for the HTML element "div".class
Wrapper for the HTML element "input" where type is "email".class
Wrapper for the HTML element "embed".class
Wrapper for the HTML element "em".class
Wrapper for the HTML element "xmp".class
Wrapper for the HTML element "fieldset".class
Wrapper for the HTML element "figure".class
Wrapper for the HTML element "figcaption".class
Wrapper for the HTML element "input".class
Wrapper for the HTML element "font".class
Wrapper for the HTML element "footer".class
Wrapper for the HTML element "form".class
Wrapper for the HTML element "frame".class
Wrapper for the HTML element "frameset".class
Wrapper for the HTML element "head".class
Wrapper for the HTML element "header".class
Wrapper for the HTML element "h1".class
Wrapper for the HTML element "h2".class
Wrapper for the HTML element "h3".class
Wrapper for the HTML element "h4".class
Wrapper for the HTML element "h5".class
Wrapper for the HTML element "h6".class
Wrapper for the HTML element "input" of type "hidden".class
Wrapper for the HTML element "hr".final class
A representation of an HTML element "html".class
Wrapper for the HTML element "img".class
Wrapper for the HTML element "input".class
Wrapper for the HTML element "iframe".class
Wrapper for the HTML element "q".class
Wrapper for the HTML element "input".class
Wrapper for the HTML element "ins".class
Wrapper for the HTML element "i".class
Wrapper for the HTML element "kbd".class
Wrapper for the HTML element "label".class
Wrapper for the HTML element "layer".class
Wrapper for the HTML element "legend".class
Wrapper for the HTML element "link".class
Wrapper for the HTML element "listing".class
Wrapper for the HTML element "li".class
Wrapper for the HTML element "main".class
Wrapper for the HTML element "map".class
Wrapper for the HTML element "mark".class
Wrapper for the HTML element "marquee".class
HTML Media element, e.g.class
Wrapper for the HTML element "menu".class
Wrapper for the HTML element "meta".class
HTML 5 "meter" element.class
Wrapper for the HTML element "input" where type is "month".class
Wrapper for the HTML element "nav".class
Wrapper for the HTML element "nobr".class
Wrapper for the HTML element "noembed".class
Wrapper for the HTML element "noframes".class
Wrapper for the HTML element "nolayer".class
Wrapper for the HTML element "noscript".class
Wrapper for the HTML element "input" with type is "number".class
Wrapper for the HTML element "object".class
Wrapper for the HTML element "option".class
Wrapper for the HTML element "optgroup".class
Wrapper for the HTML element "ol".class
Wrapper for the HTML element "output".class
Wrapper for the HTML element "p".class
Wrapper for the HTML element "param".class
Wrapper for the HTML element "input".class
Wrapper for the HTML element "picture".class
Wrapper for the HTML element "plaintext".class
Wrapper for the HTML element "pre".class
Wrapper for the HTML element "progress".class
Wrapper for the HTML element "input".class
Wrapper for the HTML element "input" where type is "range".class
Wrapper for the HTML element "rb".class
Wrapper for the HTML element "input".class
Wrapper for the HTML element "rp".class
Wrapper for the HTML element "rt".class
Wrapper for the HTML element "rtc".class
Wrapper for the HTML element "ruby".class
Wrapper for the HTML element "s", a strike-through text style.class
Wrapper for the HTML element "samp".class
Wrapper for the HTML element "script".
When a script tag references an external script (with attribute src) it gets executed when the node is added to the DOM tree.class
Wrapper for the HTML element "input" where type is "search".class
Wrapper for the HTML element "section".class
Wrapper for the HTML element "select".class
Abstract parent class to shareSelectableTextInput
implementation and typing support.class
Wrapper for the HTML element "slot".class
Wrapper for the HTML element "small".class
Wrapper for the HTML element "source".class
Wrapper for the HTML element "span".class
Wrapper for the HTML element "strike".class
Wrapper for the HTML element "strong".class
Wrapper for the HTML element "style".class
Wrapper for the HTML element "input".class
Wrapper for the HTML element "sub".class
Wrapper for the HTML element "summary".class
Wrapper for the HTML element "sup".class
Wrapper for the SVG elementsvg
.class
Wrapper for the HTML element "table".class
Wrapper for the HTML element "tbody".class
An abstract cell that provides the implementation for HtmlTableDataCell and HtmlTableHeaderCell.class
Wrapper for the HTML element "col".class
Wrapper for the HTML element "colgroup".class
Wrapper for the HTML element "td".class
Wrapper for the HTML element "tfoot".class
Wrapper for the HTML element "thead".class
Wrapper for the HTML "th" tag.class
Wrapper for the HTML element "tr".class
Wrapper for the HTML element "tt".class
Wrapper for the HTML element "input" where type is "tel".class
Wrapper for the HTML element "template".class
Wrapper for the HTML element "textarea".class
Wrapper for the HTML element "input" with type="text".class
Wrapper for the HTML element "time".class
Wrapper for the HTML element "input" where type is "time".class
Wrapper for the HTML element "title".class
Wrapper for the HTML element "track".class
Wrapper for the HTML element "u".class
An element that is returned for an HTML tag that is not supported by this framework.class
Wrapper for the HTML element "ul".class
Wrapper for the HTML element "input" where type is "url".class
Wrapper for the HTML element "var".class
Wrapper for the HTML element "video".class
Wrapper for the HTML element "input" where type is "week".class
Wrapper for the HTML element "wbr".class
Superclass for the wrappers for the HTML elements "thead", "tbody" and "tfoot".Methods in org.htmlunit.html with type parameters of type HtmlElementModifier and TypeMethodDescriptionfinal <E extends HtmlElement>
List<E> HtmlElement.getElementsByAttribute
(String elementName, String attributeName, String attributeValue) Returns all elements which are descendants of this element and match the specified search criteria.<E extends HtmlElement>
EHtmlPage.getHtmlElementById
(String elementId) Returns the HTML element with the specified ID.final <E extends HtmlElement>
EHtmlElement.getOneHtmlElementByAttribute
(String elementName, String attributeName, String attributeValue) Searches for an element based on the specified criteria, returning the first element which matches said criteria.<E extends HtmlElement>
List<E> DomElement.getStaticElementsByTagName
(String tagName) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.Methods in org.htmlunit.html that return HtmlElementModifier and TypeMethodDescriptionfinal HtmlElement
HtmlElement.appendChildIfNoneExists
(String tagName) Appends a child element to this HTML element with the specified tag name if this HTML element does not already have a child with that tag name.DefaultElementFactory.createElement
(SgmlPage page, String tagName, Attributes attributes) UnknownElementFactory.createElement
(SgmlPage page, String tagName, Attributes attributes) Creates an element according to this factory's specification.DefaultElementFactory.createElementNS
(SgmlPage page, String namespaceURI, String qualifiedName, Attributes attributes) UnknownElementFactory.createElementNS
(SgmlPage page, String namespaceURI, String qualifiedName, Attributes attributes) Creates an element according to this factory's specification.HtmlPage.getActiveElement()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.HtmlPage.getDocumentElement()
Returns the document element.ElementFromPointHandler.getElementFromPoint
(HtmlPage htmlPage, int x, int y) Returns the element for the specified x coordinate and the specified y coordinate.HtmlPage.getElementFromPoint
(int x, int y) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns the element for the specified x coordinate and the specified y coordinate.HtmlElement.getEnclosingElement
(String tagName) Returns the first element with the specified tag name that is an ancestor to this element, ornull
if no such element is found.HtmlPage.getHead()
Returns the head element.HtmlAttributeChangeEvent.getHtmlElement()
Returns the HtmlElement that changed.HtmlPage.getHtmlElementByAccessKey
(char accessKey) Returns the HTML element that is assigned to the specified access key.HtmlLabel.getLabeledElement()
Gets the element labeled by this label.DomNode.DescendantHtmlElementsIterator.next()
DomNode.DescendantHtmlElementsIterator.nextNode()
HtmlPage.tabToNextElement()
Move the focus to the next element in the tab order.HtmlPage.tabToPreviousElement()
Move the focus to the previous element in the tab order.Methods in org.htmlunit.html that return types with arguments of type HtmlElementModifier and TypeMethodDescriptionHtmlForm.getElements()
Deprecated.HtmlForm.getElements
(Predicate<HtmlElement> filter) DomElement.getElementsByTagName
(String tagName) DomElement.getElementsByTagNameNS
(String namespace, String localName) Not yet implemented.HtmlForm.getElementsJS()
This is the backend for the getElements() javascript function of the form.HtmlForm.getFormElements()
final Iterable
<HtmlElement> DomNode.getHtmlElementDescendants()
Returns anIterable
that will recursively iterate over all of this node'sHtmlElement
descendants.HtmlPage.getHtmlElementsByAccessKey
(char accessKey) Returns all the HTML elements that are assigned to the specified access key.HtmlPage.getTabbableElements()
Returns a list of all elements that are tabbable in the order that will be used for tabbing.Methods in org.htmlunit.html with parameters of type HtmlElementModifier and TypeMethodDescriptionprotected void
DomText.doType
(char c, HtmlElement htmlElement, boolean lastType) Performs the effective type action, called after the keyPress event and before the keyUp event.protected void
DomText.doType
(int keyCode, HtmlElement htmlElement, boolean lastType) Performs the effective type action, called after the keyPress event and before the keyUp event.protected static void
HtmlElement.notifyAttributeChangeListeners
(HtmlAttributeChangeEvent event, HtmlElement element, String oldAttributeValue, boolean notifyMutationObservers) Recursively notifies allHtmlAttributeChangeListener
s.Method parameters in org.htmlunit.html with type arguments of type HtmlElementConstructors in org.htmlunit.html with parameters of type HtmlElementModifierConstructorDescriptionHtmlAttributeChangeEvent
(HtmlElement element, String name, String value) Constructs a new AttributeEvent from the given element, for the given attribute name and attribute value.
HtmlForm.getFormElements()
,HtmlForm.getElementsJS()
instead