Uses of Class
org.htmlunit.html.HtmlElement
Packages that use HtmlElement
Package
Description
Framework classes (contains the
WebClient
class which is the main entry point).Classes supporting Cascading Style Sheets.
Classes specific to HTML pages, particularly the
HtmlPage
which represents
an HTML document and provides access to its content.Contains the neko html parser.
Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Some special ScriptPreProcessor's to make this working with common js libs.
-
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.css
Fields in org.htmlunit.css declared as HtmlElementModifier and TypeFieldDescriptionprivate final HtmlElement
CssStyleSheet.owner_
The HTML element which owns this stylesheet.Methods in org.htmlunit.css with parameters of type HtmlElementModifier and TypeMethodDescriptionstatic CssStyleSheet
CssStyleSheet.loadStylesheet
(HtmlElement element, HtmlLink link, String url) Loads the stylesheet at the specified link or href.Constructors in org.htmlunit.css with parameters of type HtmlElementModifierConstructorDescriptionCssStyleSheet
(HtmlElement element, String styleSheet, String uri) Creates a new stylesheet representing the CSS stylesheet for the specified input source.CssStyleSheet
(HtmlElement element, org.htmlunit.cssparser.dom.CSSStyleSheetImpl wrapped, String uri) Creates a new stylesheet representing the specified CSS stylesheet.CssStyleSheet
(HtmlElement element, org.htmlunit.cssparser.parser.InputSource source, String uri) Creates a new stylesheet representing the CSS stylesheet for the specified input source. -
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 "blink".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 "command".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 "isindex".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 "menuitem".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 "multicol".class
Wrapper for the HTML element "nav".class
Wrapper for the HTML element "nextId".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.(package private) <E extends HtmlElement>
DomNodeList<E> DomElement.getElementsByTagNameImpl
(String tagName) This should beDomElement.getElementsByTagName(String)
, but is separate because of the type erasure in Java.private <E extends HtmlElement>
List<E> HtmlForm.getFormElementsByAttribute
(String elementName, String attributeName, String attributeValue) Same asgetElementsByAttribute(String, String, String)
but ignoring elements that are contained in a nested form.<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.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) DefaultElementFactory.createElementNS
(SgmlPage page, String namespaceURI, String qualifiedName, Attributes attributes, boolean checkBrowserCompatibility) UnknownElementFactory.createElementNS
(SgmlPage page, String namespaceURI, String qualifiedName, Attributes attributes) Creates an element according to this factory's specification.UnknownElementFactory.createElementNS
(SgmlPage page, String namespaceURI, String qualifiedName, Attributes attributes, boolean checkBrowserCompatibility) Creates an element according to this factory's specification.private HtmlElement
DefaultElementFactory.createInputElement
(String qualifiedName, SgmlPage page, Map<String, DomAttr> attributeMap) HtmlPage.getActiveElement()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.HtmlPage.getBody()
Returns thebody
element (orframeset
element), ornull
if it does not yet exist.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.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 TypeMethodDescriptionprivate static Comparator
<HtmlElement> HtmlPage.createTabOrderComparator()
HtmlForm.getElements()
DomElement.getElementsByTagName
(String tagName) DomElement.getElementsByTagNameNS
(String namespace, String localName) Not yet implemented.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 TypeMethodDescriptionXmlSerializer.createAttributesCopyWithClonedAttribute
(HtmlElement elt, String attrName) protected 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.(package private) void
DoTypeProcessor.doType
(String currentValue, SelectionDelegate selectionDelegate, char c, HtmlElement element, boolean lastType) (package private) void
DoTypeProcessor.doType
(String currentValue, SelectionDelegate selectionDelegate, int keyCode, HtmlElement element, boolean lastType) (package private) static Page
HtmlInput.executeOnChangeHandlerIfAppropriate
(HtmlElement htmlElement) Executes the onchange script code for this element if this is appropriate.private static boolean
HtmlForm.isSubmittable
(HtmlElement element, SubmittableElement submitElement) Returnstrue
if the specified element gets submitted when this form is submitted, assuming that the form is submitted using the specified submit element.private static boolean
HtmlForm.isValidForSubmission
(HtmlElement element, SubmittableElement submitElement) protected static void
HtmlElement.notifyAttributeChangeListeners
(HtmlAttributeChangeEvent event, HtmlElement element, String oldAttributeValue, boolean notifyMutationObservers) Recursively notifies allHtmlAttributeChangeListener
s.(package private) void
HtmlPage.removeMappedElement
(HtmlElement element) Removes an element from the ID and name maps, if necessary.Constructors 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. -
Uses of HtmlElement in org.htmlunit.html.parser.neko
Fields in org.htmlunit.html.parser.neko declared as HtmlElementMethods in org.htmlunit.html.parser.neko that return HtmlElement -
Uses of HtmlElement in org.htmlunit.javascript
Methods in org.htmlunit.javascript with parameters of type HtmlElementModifier and TypeMethodDescriptionprotected String
HtmlUnitContextFactory.preProcess
(HtmlPage htmlPage, String sourceCode, String sourceName, int lineNumber, HtmlElement htmlElement) Pre process the specified source code in the context of the given page using the processor specified in theWebClient
. -
Uses of HtmlElement in org.htmlunit.javascript.host.html
Subclasses of HtmlElement in org.htmlunit.javascript.host.htmlMethods in org.htmlunit.javascript.host.html that return HtmlElementModifier and TypeMethodDescriptionprivate HtmlElement
HTMLFormElement.findFirstElement
(String name) HTMLElement.getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.HTMLElement.getDomNodeOrNull()
Returns the DOM node that corresponds to this JavaScript object or null if a node hasn't been set.(package private) HtmlElement
HTMLDocument.getLastHtmlElement
(HtmlElement node) Gets the node that is the last one when exploring following nodes, depth-first.Methods in org.htmlunit.javascript.host.html that return types with arguments of type HtmlElementModifier and TypeMethodDescription(package private) List
<HtmlElement> HTMLFormElement.findElements
(String name) Methods in org.htmlunit.javascript.host.html with parameters of type HtmlElementModifier and TypeMethodDescription(package private) static String
HTMLAnchorElement.getDefaultValue
(HtmlElement element) (package private) HtmlElement
HTMLDocument.getLastHtmlElement
(HtmlElement node) Gets the node that is the last one when exploring following nodes, depth-first.private boolean
HTMLFormElement.isAccessibleByIdOrName
(HtmlElement element, String name) Indicates if the element can be reached by id or name in expressions like "myForm.myField". -
Uses of HtmlElement in org.htmlunit.javascript.preprocessor
Methods in org.htmlunit.javascript.preprocessor with parameters of type HtmlElementModifier and TypeMethodDescriptionHtmxOneNineTenScriptPreProcessor.preProcess
(HtmlPage htmlPage, String sourceCode, String sourceName, int lineNumber, HtmlElement htmlElement)