Uses of Class
org.htmlunit.html.HtmlElement
-
Packages that use HtmlElement Package Description org.htmlunit Framework classes (contains theWebClient
class which is the main entry point).org.htmlunit.css Classes supporting Cascading Style Sheets.org.htmlunit.html Classes specific to HTML pages, particularly theHtmlPage
which represents an HTML document and provides access to its content.org.htmlunit.html.parser.neko Contains the neko html parser.org.htmlunit.javascript Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.html Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.preprocessor 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 HtmlElement Modifier and Type Method Description java.lang.String
ScriptPreProcessor. preProcess(HtmlPage htmlPage, java.lang.String sourceCode, java.lang.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 HtmlElement Modifier and Type Field Description private HtmlElement
CssStyleSheet. owner_
The HTML element which owns this stylesheet.Methods in org.htmlunit.css with parameters of type HtmlElement Modifier and Type Method Description static CssStyleSheet
CssStyleSheet. loadStylesheet(HtmlElement element, HtmlLink link, java.lang.String url)
Loads the stylesheet at the specified link or href.Constructors in org.htmlunit.css with parameters of type HtmlElement Constructor Description CssStyleSheet(HtmlElement element, java.lang.String styleSheet, java.lang.String uri)
Creates a new stylesheet representing the CSS stylesheet for the specified input source.CssStyleSheet(HtmlElement element, org.htmlunit.cssparser.dom.CSSStyleSheetImpl wrapped, java.lang.String uri)
Creates a new stylesheet representing the specified CSS stylesheet.CssStyleSheet(HtmlElement element, org.htmlunit.cssparser.parser.InputSource source, java.lang.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.html Modifier and Type Class Description class
BaseFrameElement
Base class for frame and iframe.class
HtmlAbbreviated
Wrapper for the HTML element "abbr".class
HtmlAcronym
Wrapper for the HTML element "acronym".class
HtmlAddress
Wrapper for the HTML element "address".class
HtmlAnchor
Wrapper for the HTML element "a".class
HtmlArea
Wrapper for the HTML element "area".class
HtmlArticle
Wrapper for the HTML element "article".class
HtmlAside
Wrapper for the HTML element "aside".class
HtmlAudio
Wrapper for the HTML element "Audio".class
HtmlBackgroundSound
Wrapper for the HTML element "bgsound".class
HtmlBase
Wrapper for the HTML element "base".class
HtmlBaseFont
Wrapper for the HTML element "basefont".class
HtmlBidirectionalIsolation
Wrapper for the HTML element "bdi".class
HtmlBidirectionalOverride
Wrapper for the HTML element "bdo".class
HtmlBig
Wrapper for the HTML element "big".class
HtmlBlink
Wrapper for the HTML element "blink".class
HtmlBlockQuote
Wrapper for the HTML element "blockquote".class
HtmlBody
Wrapper for the HTML element "body".class
HtmlBold
Wrapper for the HTML element "b".class
HtmlBreak
Wrapper for the HTML element "br".class
HtmlButton
Wrapper for the HTML element "button".class
HtmlButtonInput
Wrapper for the HTML element "input" where type is "button".class
HtmlCanvas
Wrapper for the HTML element "canvas".class
HtmlCaption
Wrapper for the HTML element "caption".class
HtmlCenter
Wrapper for the HTML element "center".class
HtmlCheckBoxInput
Wrapper for the HTML element "input".class
HtmlCitation
Wrapper for the HTML element "cite".class
HtmlCode
Wrapper for the HTML element "code".class
HtmlColorInput
Wrapper for the HTML element "input" where type is "color".class
HtmlCommand
Wrapper for the HTML element "command".class
HtmlData
Wrapper for the HTML element "data".class
HtmlDataList
Wrapper for the HTML element "datalist".class
HtmlDateInput
Wrapper for the HTML element "input" where type is "date".class
HtmlDateTimeLocalInput
Wrapper for the HTML element "input" where type is "datetime-local".class
HtmlDefinition
Wrapper for the HTML element "dfn".class
HtmlDefinitionDescription
Wrapper for the HTML element "dd".class
HtmlDefinitionList
Wrapper for the HTML element "dl".class
HtmlDefinitionTerm
Wrapper for the HTML element "dt".class
HtmlDeletedText
Wrapper for the HTML element "del".class
HtmlDetails
Wrapper for the HTML element "details".class
HtmlDialog
Wrapper for the HTML element "dialog".class
HtmlDirectory
Wrapper for the HTML element "dir".class
HtmlDivision
Wrapper for the HTML element "div".class
HtmlEmailInput
Wrapper for the HTML element "input" where type is "email".class
HtmlEmbed
Wrapper for the HTML element "embed".class
HtmlEmphasis
Wrapper for the HTML element "em".class
HtmlExample
Wrapper for the HTML element "xmp".class
HtmlFieldSet
Wrapper for the HTML element "fieldset".class
HtmlFigure
Wrapper for the HTML element "figure".class
HtmlFigureCaption
Wrapper for the HTML element "figcaption".class
HtmlFileInput
Wrapper for the HTML element "input".class
HtmlFont
Wrapper for the HTML element "font".class
HtmlFooter
Wrapper for the HTML element "footer".class
HtmlForm
Wrapper for the HTML element "form".class
HtmlFrame
Wrapper for the HTML element "frame".class
HtmlFrameSet
Wrapper for the HTML element "frameset".class
HtmlHead
Wrapper for the HTML element "head".class
HtmlHeader
Wrapper for the HTML element "header".class
HtmlHeading1
Wrapper for the HTML element "h1".class
HtmlHeading2
Wrapper for the HTML element "h2".class
HtmlHeading3
Wrapper for the HTML element "h3".class
HtmlHeading4
Wrapper for the HTML element "h4".class
HtmlHeading5
Wrapper for the HTML element "h5".class
HtmlHeading6
Wrapper for the HTML element "h6".class
HtmlHiddenInput
Wrapper for the HTML element "input" of type "hidden".class
HtmlHorizontalRule
Wrapper for the HTML element "hr".class
HtmlHtml
A representation of an HTML element "html".class
HtmlImage
Wrapper for the HTML element "img".class
HtmlImageInput
Wrapper for the HTML element "input".class
HtmlInlineFrame
Wrapper for the HTML element "iframe".class
HtmlInlineQuotation
Wrapper for the HTML element "q".class
HtmlInput
Wrapper for the HTML element "input".class
HtmlInsertedText
Wrapper for the HTML element "ins".class
HtmlIsIndex
Wrapper for the HTML element "isindex".class
HtmlItalic
Wrapper for the HTML element "i".class
HtmlKeyboard
Wrapper for the HTML element "kbd".class
HtmlLabel
Wrapper for the HTML element "label".class
HtmlLayer
Wrapper for the HTML element "layer".class
HtmlLegend
Wrapper for the HTML element "legend".class
HtmlLink
Wrapper for the HTML element "link".class
HtmlListing
Wrapper for the HTML element "listing".class
HtmlListItem
Wrapper for the HTML element "li".class
HtmlMain
Wrapper for the HTML element "main".class
HtmlMap
Wrapper for the HTML element "map".class
HtmlMark
Wrapper for the HTML element "mark".class
HtmlMarquee
Wrapper for the HTML element "marquee".class
HtmlMedia
HTML Media element, e.g.class
HtmlMenu
Wrapper for the HTML element "menu".class
HtmlMenuItem
Wrapper for the HTML element "menuitem".class
HtmlMeta
Wrapper for the HTML element "meta".class
HtmlMeter
HTML 5 "meter" element.class
HtmlMonthInput
Wrapper for the HTML element "input" where type is "month".class
HtmlMultiColumn
Wrapper for the HTML element "multicol".class
HtmlNav
Wrapper for the HTML element "nav".class
HtmlNextId
Wrapper for the HTML element "nextId".class
HtmlNoBreak
Wrapper for the HTML element "nobr".class
HtmlNoEmbed
Wrapper for the HTML element "noembed".class
HtmlNoFrames
Wrapper for the HTML element "noframes".class
HtmlNoLayer
Wrapper for the HTML element "nolayer".class
HtmlNoScript
Wrapper for the HTML element "noscript".class
HtmlNumberInput
Wrapper for the HTML element "input" with type is "number".class
HtmlObject
Wrapper for the HTML element "object".class
HtmlOption
Wrapper for the HTML element "option".class
HtmlOptionGroup
Wrapper for the HTML element "optgroup".class
HtmlOrderedList
Wrapper for the HTML element "ol".class
HtmlOutput
Wrapper for the HTML element "output".class
HtmlParagraph
Wrapper for the HTML element "p".class
HtmlParameter
Wrapper for the HTML element "param".class
HtmlPasswordInput
Wrapper for the HTML element "input".class
HtmlPicture
Wrapper for the HTML element "picture".class
HtmlPlainText
Wrapper for the HTML element "plaintext".class
HtmlPreformattedText
Wrapper for the HTML element "pre".class
HtmlProgress
Wrapper for the HTML element "progress".class
HtmlRadioButtonInput
Wrapper for the HTML element "input".class
HtmlRangeInput
Wrapper for the HTML element "input" where type is "range".class
HtmlRb
Wrapper for the HTML element "rb".class
HtmlResetInput
Wrapper for the HTML element "input".class
HtmlRp
Wrapper for the HTML element "rp".class
HtmlRt
Wrapper for the HTML element "rt".class
HtmlRtc
Wrapper for the HTML element "rtc".class
HtmlRuby
Wrapper for the HTML element "ruby".class
HtmlS
Wrapper for the HTML element "s", a strike-through text style.class
HtmlSample
Wrapper for the HTML element "samp".class
HtmlScript
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
HtmlSearchInput
Wrapper for the HTML element "input" where type is "search".class
HtmlSection
Wrapper for the HTML element "section".class
HtmlSelect
Wrapper for the HTML element "select".class
HtmlSelectableTextInput
Abstract parent class to shareSelectableTextInput
implementation and typing support.class
HtmlSlot
Wrapper for the HTML element "slot".class
HtmlSmall
Wrapper for the HTML element "small".class
HtmlSource
Wrapper for the HTML element "source".class
HtmlSpan
Wrapper for the HTML element "span".class
HtmlStrike
Wrapper for the HTML element "strike".class
HtmlStrong
Wrapper for the HTML element "strong".class
HtmlStyle
Wrapper for the HTML element "style".class
HtmlSubmitInput
Wrapper for the HTML element "input".class
HtmlSubscript
Wrapper for the HTML element "sub".class
HtmlSummary
Wrapper for the HTML element "summary".class
HtmlSuperscript
Wrapper for the HTML element "sup".class
HtmlSvg
Wrapper for the SVG elementsvg
.class
HtmlTable
Wrapper for the HTML element "table".class
HtmlTableBody
Wrapper for the HTML element "tbody".class
HtmlTableCell
An abstract cell that provides the implementation for HtmlTableDataCell and HtmlTableHeaderCell.class
HtmlTableColumn
Wrapper for the HTML element "col".class
HtmlTableColumnGroup
Wrapper for the HTML element "colgroup".class
HtmlTableDataCell
Wrapper for the HTML element "td".class
HtmlTableFooter
Wrapper for the HTML element "tfoot".class
HtmlTableHeader
Wrapper for the HTML element "thead".class
HtmlTableHeaderCell
Wrapper for the HTML "th" tag.class
HtmlTableRow
Wrapper for the HTML element "tr".class
HtmlTeletype
Wrapper for the HTML element "tt".class
HtmlTelInput
Wrapper for the HTML element "input" where type is "tel".class
HtmlTemplate
Wrapper for the HTML element "template".class
HtmlTextArea
Wrapper for the HTML element "textarea".class
HtmlTextInput
Wrapper for the HTML element "input" with type="text".class
HtmlTime
Wrapper for the HTML element "time".class
HtmlTimeInput
Wrapper for the HTML element "input" where type is "time".class
HtmlTitle
Wrapper for the HTML element "title".class
HtmlTrack
Wrapper for the HTML element "track".class
HtmlUnderlined
Wrapper for the HTML element "u".class
HtmlUnknownElement
An element that is returned for an HTML tag that is not supported by this framework.class
HtmlUnorderedList
Wrapper for the HTML element "ul".class
HtmlUrlInput
Wrapper for the HTML element "input" where type is "url".class
HtmlVariable
Wrapper for the HTML element "var".class
HtmlVideo
Wrapper for the HTML element "video".class
HtmlWeekInput
Wrapper for the HTML element "input" where type is "week".class
HtmlWordBreak
Wrapper for the HTML element "wbr".class
TableRowGroup
Superclass for the wrappers for the HTML elements "thead", "tbody" and "tfoot".Methods in org.htmlunit.html with type parameters of type HtmlElement Modifier and Type Method Description <E extends HtmlElement>
java.util.List<E>HtmlElement. getElementsByAttribute(java.lang.String elementName, java.lang.String attributeName, java.lang.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(java.lang.String tagName)
This should beDomElement.getElementsByTagName(String)
, but is separate because of the type erasure in Java.private <E extends HtmlElement>
java.util.List<E>HtmlForm. getFormElementsByAttribute(java.lang.String elementName, java.lang.String attributeName, java.lang.String attributeValue)
Same asgetElementsByAttribute(String, String, String)
but ignoring elements that are contained in a nested form.<E extends HtmlElement>
EHtmlPage. getHtmlElementById(java.lang.String elementId)
Returns the HTML element with the specified ID.<E extends HtmlElement>
EHtmlElement. getOneHtmlElementByAttribute(java.lang.String elementName, java.lang.String attributeName, java.lang.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 HtmlElement Modifier and Type Method Description HtmlElement
HtmlElement. appendChildIfNoneExists(java.lang.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.HtmlElement
DefaultElementFactory. createElement(SgmlPage page, java.lang.String tagName, org.xml.sax.Attributes attributes)
HtmlElement
UnknownElementFactory. createElement(SgmlPage page, java.lang.String tagName, org.xml.sax.Attributes attributes)
Creates an element according to this factory's specification.HtmlElement
DefaultElementFactory. createElementNS(SgmlPage page, java.lang.String namespaceURI, java.lang.String qualifiedName, org.xml.sax.Attributes attributes)
HtmlElement
DefaultElementFactory. createElementNS(SgmlPage page, java.lang.String namespaceURI, java.lang.String qualifiedName, org.xml.sax.Attributes attributes, boolean checkBrowserCompatibility)
HtmlElement
UnknownElementFactory. createElementNS(SgmlPage page, java.lang.String namespaceURI, java.lang.String qualifiedName, org.xml.sax.Attributes attributes)
Creates an element according to this factory's specification.HtmlElement
UnknownElementFactory. createElementNS(SgmlPage page, java.lang.String namespaceURI, java.lang.String qualifiedName, org.xml.sax.Attributes attributes, boolean checkBrowserCompatibility)
Creates an element according to this factory's specification.private HtmlElement
DefaultElementFactory. createInputElement(java.lang.String qualifiedName, SgmlPage page, java.util.Map<java.lang.String,DomAttr> attributeMap)
HtmlElement
HtmlPage. getActiveElement()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.HtmlElement
HtmlPage. getBody()
Returns thebody
element (orframeset
element), ornull
if it does not yet exist.HtmlElement
HtmlPage. getDocumentElement()
Returns the document element.HtmlElement
ElementFromPointHandler. getElementFromPoint(HtmlPage htmlPage, int x, int y)
Returns the element for the specified x coordinate and the specified y coordinate.HtmlElement
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
HtmlElement. getEnclosingElement(java.lang.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.HtmlElement
HtmlPage. getHead()
Returns the head element.HtmlElement
HtmlAttributeChangeEvent. getHtmlElement()
Returns the HtmlElement that changed.HtmlElement
HtmlPage. getHtmlElementByAccessKey(char accessKey)
Returns the HTML element that is assigned to the specified access key.HtmlElement
HtmlLabel. getLabeledElement()
Gets the element labeled by this label.HtmlElement
HtmlPage. tabToNextElement()
Move the focus to the next element in the tab order.HtmlElement
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 HtmlElement Modifier and Type Method Description private static java.util.Comparator<HtmlElement>
HtmlPage. createTabOrderComparator()
java.util.List<HtmlElement>
HtmlForm. getElements()
DomNodeList<HtmlElement>
DomElement. getElementsByTagName(java.lang.String tagName)
DomNodeList<HtmlElement>
DomElement. getElementsByTagNameNS(java.lang.String namespace, java.lang.String localName)
Not yet implemented.java.lang.Iterable<HtmlElement>
DomNode. getHtmlElementDescendants()
Returns anIterable
that will recursively iterate over all of this node'sHtmlElement
descendants.java.util.List<HtmlElement>
HtmlPage. getHtmlElementsByAccessKey(char accessKey)
Returns all the HTML elements that are assigned to the specified access key.java.util.List<HtmlElement>
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 HtmlElement Modifier and Type Method Description private static java.util.Map<java.lang.String,DomAttr>
XmlSerializer. createAttributesCopyWithClonedAttribute(HtmlElement elt, java.lang.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(java.lang.String currentValue, SelectionDelegate selectionDelegate, char c, HtmlElement element, boolean lastType)
(package private) void
DoTypeProcessor. doType(java.lang.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, java.lang.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 HtmlElement Constructor Description HtmlAttributeChangeEvent(HtmlElement element, java.lang.String name, java.lang.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 HtmlElement Modifier and Type Field Description private HtmlElement
HtmlUnitNekoDOMBuilder. body_
Methods in org.htmlunit.html.parser.neko that return HtmlElement Modifier and Type Method Description (package private) HtmlElement
HtmlUnitNekoDOMBuilder. getBody()
-
Uses of HtmlElement in org.htmlunit.javascript
Methods in org.htmlunit.javascript with parameters of type HtmlElement Modifier and Type Method Description protected java.lang.String
HtmlUnitContextFactory. preProcess(HtmlPage htmlPage, java.lang.String sourceCode, java.lang.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.html Modifier and Type Class Description static class
HTMLElement.ProxyDomNode
ProxyDomNode.Methods in org.htmlunit.javascript.host.html that return HtmlElement Modifier and Type Method Description private HtmlElement
HTMLFormElement. findFirstElement(java.lang.String name)
HtmlElement
HTMLElement. getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.HtmlElement
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 HtmlElement Modifier and Type Method Description (package private) java.util.List<HtmlElement>
HTMLFormElement. findElements(java.lang.String name)
Methods in org.htmlunit.javascript.host.html with parameters of type HtmlElement Modifier and Type Method Description (package private) static java.lang.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, java.lang.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 HtmlElement Modifier and Type Method Description java.lang.String
HtmxOneNineTenScriptPreProcessor. preProcess(HtmlPage htmlPage, java.lang.String sourceCode, java.lang.String sourceName, int lineNumber, HtmlElement htmlElement)
-