Uses of Class
org.htmlunit.html.HtmlElement
-
Packages that use HtmlElement Package Description org.htmlunit Framework classes (contains theWebClientclass which is the main entry point).org.htmlunit.css Classes supporting Cascading Style Sheets.org.htmlunit.html Classes specific to HTML pages, particularly theHtmlPagewhich 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.StringScriptPreProcessor. 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 HtmlElementCssStyleSheet. owner_The HTML element which owns this stylesheet.Methods in org.htmlunit.css with parameters of type HtmlElement Modifier and Type Method Description static CssStyleSheetCssStyleSheet. 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 classBaseFrameElementBase class for frame and iframe.classHtmlAbbreviatedWrapper for the HTML element "abbr".classHtmlAcronymWrapper for the HTML element "acronym".classHtmlAddressWrapper for the HTML element "address".classHtmlAnchorWrapper for the HTML element "a".classHtmlAreaWrapper for the HTML element "area".classHtmlArticleWrapper for the HTML element "article".classHtmlAsideWrapper for the HTML element "aside".classHtmlAudioWrapper for the HTML element "Audio".classHtmlBackgroundSoundWrapper for the HTML element "bgsound".classHtmlBaseWrapper for the HTML element "base".classHtmlBaseFontWrapper for the HTML element "basefont".classHtmlBidirectionalIsolationWrapper for the HTML element "bdi".classHtmlBidirectionalOverrideWrapper for the HTML element "bdo".classHtmlBigWrapper for the HTML element "big".classHtmlBlinkWrapper for the HTML element "blink".classHtmlBlockQuoteWrapper for the HTML element "blockquote".classHtmlBodyWrapper for the HTML element "body".classHtmlBoldWrapper for the HTML element "b".classHtmlBreakWrapper for the HTML element "br".classHtmlButtonWrapper for the HTML element "button".classHtmlButtonInputWrapper for the HTML element "input" where type is "button".classHtmlCanvasWrapper for the HTML element "canvas".classHtmlCaptionWrapper for the HTML element "caption".classHtmlCenterWrapper for the HTML element "center".classHtmlCheckBoxInputWrapper for the HTML element "input".classHtmlCitationWrapper for the HTML element "cite".classHtmlCodeWrapper for the HTML element "code".classHtmlColorInputWrapper for the HTML element "input" where type is "color".classHtmlCommandWrapper for the HTML element "command".classHtmlDataWrapper for the HTML element "data".classHtmlDataListWrapper for the HTML element "datalist".classHtmlDateInputWrapper for the HTML element "input" where type is "date".classHtmlDateTimeLocalInputWrapper for the HTML element "input" where type is "datetime-local".classHtmlDefinitionWrapper for the HTML element "dfn".classHtmlDefinitionDescriptionWrapper for the HTML element "dd".classHtmlDefinitionListWrapper for the HTML element "dl".classHtmlDefinitionTermWrapper for the HTML element "dt".classHtmlDeletedTextWrapper for the HTML element "del".classHtmlDetailsWrapper for the HTML element "details".classHtmlDialogWrapper for the HTML element "dialog".classHtmlDirectoryWrapper for the HTML element "dir".classHtmlDivisionWrapper for the HTML element "div".classHtmlEmailInputWrapper for the HTML element "input" where type is "email".classHtmlEmbedWrapper for the HTML element "embed".classHtmlEmphasisWrapper for the HTML element "em".classHtmlExampleWrapper for the HTML element "xmp".classHtmlFieldSetWrapper for the HTML element "fieldset".classHtmlFigureWrapper for the HTML element "figure".classHtmlFigureCaptionWrapper for the HTML element "figcaption".classHtmlFileInputWrapper for the HTML element "input".classHtmlFontWrapper for the HTML element "font".classHtmlFooterWrapper for the HTML element "footer".classHtmlFormWrapper for the HTML element "form".classHtmlFrameWrapper for the HTML element "frame".classHtmlFrameSetWrapper for the HTML element "frameset".classHtmlHeadWrapper for the HTML element "head".classHtmlHeaderWrapper for the HTML element "header".classHtmlHeading1Wrapper for the HTML element "h1".classHtmlHeading2Wrapper for the HTML element "h2".classHtmlHeading3Wrapper for the HTML element "h3".classHtmlHeading4Wrapper for the HTML element "h4".classHtmlHeading5Wrapper for the HTML element "h5".classHtmlHeading6Wrapper for the HTML element "h6".classHtmlHiddenInputWrapper for the HTML element "input" of type "hidden".classHtmlHorizontalRuleWrapper for the HTML element "hr".classHtmlHtmlA representation of an HTML element "html".classHtmlImageWrapper for the HTML element "img".classHtmlImageInputWrapper for the HTML element "input".classHtmlInlineFrameWrapper for the HTML element "iframe".classHtmlInlineQuotationWrapper for the HTML element "q".classHtmlInputWrapper for the HTML element "input".classHtmlInsertedTextWrapper for the HTML element "ins".classHtmlIsIndexWrapper for the HTML element "isindex".classHtmlItalicWrapper for the HTML element "i".classHtmlKeyboardWrapper for the HTML element "kbd".classHtmlLabelWrapper for the HTML element "label".classHtmlLayerWrapper for the HTML element "layer".classHtmlLegendWrapper for the HTML element "legend".classHtmlLinkWrapper for the HTML element "link".classHtmlListingWrapper for the HTML element "listing".classHtmlListItemWrapper for the HTML element "li".classHtmlMainWrapper for the HTML element "main".classHtmlMapWrapper for the HTML element "map".classHtmlMarkWrapper for the HTML element "mark".classHtmlMarqueeWrapper for the HTML element "marquee".classHtmlMediaHTML Media element, e.g.classHtmlMenuWrapper for the HTML element "menu".classHtmlMenuItemWrapper for the HTML element "menuitem".classHtmlMetaWrapper for the HTML element "meta".classHtmlMeterHTML 5 "meter" element.classHtmlMonthInputWrapper for the HTML element "input" where type is "month".classHtmlMultiColumnWrapper for the HTML element "multicol".classHtmlNavWrapper for the HTML element "nav".classHtmlNextIdWrapper for the HTML element "nextId".classHtmlNoBreakWrapper for the HTML element "nobr".classHtmlNoEmbedWrapper for the HTML element "noembed".classHtmlNoFramesWrapper for the HTML element "noframes".classHtmlNoLayerWrapper for the HTML element "nolayer".classHtmlNoScriptWrapper for the HTML element "noscript".classHtmlNumberInputWrapper for the HTML element "input" with type is "number".classHtmlObjectWrapper for the HTML element "object".classHtmlOptionWrapper for the HTML element "option".classHtmlOptionGroupWrapper for the HTML element "optgroup".classHtmlOrderedListWrapper for the HTML element "ol".classHtmlOutputWrapper for the HTML element "output".classHtmlParagraphWrapper for the HTML element "p".classHtmlParameterWrapper for the HTML element "param".classHtmlPasswordInputWrapper for the HTML element "input".classHtmlPictureWrapper for the HTML element "picture".classHtmlPlainTextWrapper for the HTML element "plaintext".classHtmlPreformattedTextWrapper for the HTML element "pre".classHtmlProgressWrapper for the HTML element "progress".classHtmlRadioButtonInputWrapper for the HTML element "input".classHtmlRangeInputWrapper for the HTML element "input" where type is "range".classHtmlRbWrapper for the HTML element "rb".classHtmlResetInputWrapper for the HTML element "input".classHtmlRpWrapper for the HTML element "rp".classHtmlRtWrapper for the HTML element "rt".classHtmlRtcWrapper for the HTML element "rtc".classHtmlRubyWrapper for the HTML element "ruby".classHtmlSWrapper for the HTML element "s", a strike-through text style.classHtmlSampleWrapper for the HTML element "samp".classHtmlScriptWrapper 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.classHtmlSearchInputWrapper for the HTML element "input" where type is "search".classHtmlSectionWrapper for the HTML element "section".classHtmlSelectWrapper for the HTML element "select".classHtmlSelectableTextInputAbstract parent class to shareSelectableTextInputimplementation and typing support.classHtmlSlotWrapper for the HTML element "slot".classHtmlSmallWrapper for the HTML element "small".classHtmlSourceWrapper for the HTML element "source".classHtmlSpanWrapper for the HTML element "span".classHtmlStrikeWrapper for the HTML element "strike".classHtmlStrongWrapper for the HTML element "strong".classHtmlStyleWrapper for the HTML element "style".classHtmlSubmitInputWrapper for the HTML element "input".classHtmlSubscriptWrapper for the HTML element "sub".classHtmlSummaryWrapper for the HTML element "summary".classHtmlSuperscriptWrapper for the HTML element "sup".classHtmlSvgWrapper for the SVG elementsvg.classHtmlTableWrapper for the HTML element "table".classHtmlTableBodyWrapper for the HTML element "tbody".classHtmlTableCellAn abstract cell that provides the implementation for HtmlTableDataCell and HtmlTableHeaderCell.classHtmlTableColumnWrapper for the HTML element "col".classHtmlTableColumnGroupWrapper for the HTML element "colgroup".classHtmlTableDataCellWrapper for the HTML element "td".classHtmlTableFooterWrapper for the HTML element "tfoot".classHtmlTableHeaderWrapper for the HTML element "thead".classHtmlTableHeaderCellWrapper for the HTML "th" tag.classHtmlTableRowWrapper for the HTML element "tr".classHtmlTeletypeWrapper for the HTML element "tt".classHtmlTelInputWrapper for the HTML element "input" where type is "tel".classHtmlTemplateWrapper for the HTML element "template".classHtmlTextAreaWrapper for the HTML element "textarea".classHtmlTextInputWrapper for the HTML element "input" with type="text".classHtmlTimeWrapper for the HTML element "time".classHtmlTimeInputWrapper for the HTML element "input" where type is "time".classHtmlTitleWrapper for the HTML element "title".classHtmlTrackWrapper for the HTML element "track".classHtmlUnderlinedWrapper for the HTML element "u".classHtmlUnknownElementAn element that is returned for an HTML tag that is not supported by this framework.classHtmlUnorderedListWrapper for the HTML element "ul".classHtmlUrlInputWrapper for the HTML element "input" where type is "url".classHtmlVariableWrapper for the HTML element "var".classHtmlVideoWrapper for the HTML element "video".classHtmlWeekInputWrapper for the HTML element "input" where type is "week".classHtmlWordBreakWrapper for the HTML element "wbr".classTableRowGroupSuperclass 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 HtmlElementHtmlElement. 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.HtmlElementDefaultElementFactory. createElement(SgmlPage page, java.lang.String tagName, org.xml.sax.Attributes attributes)HtmlElementUnknownElementFactory. createElement(SgmlPage page, java.lang.String tagName, org.xml.sax.Attributes attributes)Creates an element according to this factory's specification.HtmlElementDefaultElementFactory. createElementNS(SgmlPage page, java.lang.String namespaceURI, java.lang.String qualifiedName, org.xml.sax.Attributes attributes)HtmlElementDefaultElementFactory. createElementNS(SgmlPage page, java.lang.String namespaceURI, java.lang.String qualifiedName, org.xml.sax.Attributes attributes, boolean checkBrowserCompatibility)HtmlElementUnknownElementFactory. 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.HtmlElementUnknownElementFactory. 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 HtmlElementDefaultElementFactory. createInputElement(java.lang.String qualifiedName, SgmlPage page, java.util.Map<java.lang.String,DomAttr> attributeMap)HtmlElementHtmlPage. getActiveElement()INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.HtmlElementHtmlPage. getBody()Returns thebodyelement (orframesetelement), ornullif it does not yet exist.HtmlElementHtmlPage. getDocumentElement()Returns the document element.HtmlElementElementFromPointHandler. getElementFromPoint(HtmlPage htmlPage, int x, int y)Returns the element for the specified x coordinate and the specified y coordinate.HtmlElementHtmlPage. 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.HtmlElementHtmlElement. getEnclosingElement(java.lang.String tagName)Returns the first element with the specified tag name that is an ancestor to this element, ornullif no such element is found.HtmlElementHtmlPage. getHead()Returns the head element.HtmlElementHtmlAttributeChangeEvent. getHtmlElement()Returns the HtmlElement that changed.HtmlElementHtmlPage. getHtmlElementByAccessKey(char accessKey)Returns the HTML element that is assigned to the specified access key.HtmlElementHtmlLabel. getLabeledElement()Gets the element labeled by this label.HtmlElementHtmlPage. tabToNextElement()Move the focus to the next element in the tab order.HtmlElementHtmlPage. 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 anIterablethat will recursively iterate over all of this node'sHtmlElementdescendants.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 voidDomText. doType(char c, HtmlElement htmlElement, boolean lastType)Performs the effective type action, called after the keyPress event and before the keyUp event.protected voidDomText. doType(int keyCode, HtmlElement htmlElement, boolean lastType)Performs the effective type action, called after the keyPress event and before the keyUp event.(package private) voidDoTypeProcessor. doType(java.lang.String currentValue, SelectionDelegate selectionDelegate, char c, HtmlElement element, boolean lastType)(package private) voidDoTypeProcessor. doType(java.lang.String currentValue, SelectionDelegate selectionDelegate, int keyCode, HtmlElement element, boolean lastType)(package private) static PageHtmlInput. executeOnChangeHandlerIfAppropriate(HtmlElement htmlElement)Executes the onchange script code for this element if this is appropriate.private static booleanHtmlForm. isSubmittable(HtmlElement element, SubmittableElement submitElement)Returnstrueif the specified element gets submitted when this form is submitted, assuming that the form is submitted using the specified submit element.private static booleanHtmlForm. isValidForSubmission(HtmlElement element, SubmittableElement submitElement)protected static voidHtmlElement. notifyAttributeChangeListeners(HtmlAttributeChangeEvent event, HtmlElement element, java.lang.String oldAttributeValue, boolean notifyMutationObservers)Recursively notifies allHtmlAttributeChangeListeners.(package private) voidHtmlPage. 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 HtmlElementHtmlUnitNekoDOMBuilder. body_Methods in org.htmlunit.html.parser.neko that return HtmlElement Modifier and Type Method Description (package private) HtmlElementHtmlUnitNekoDOMBuilder. 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.StringHtmlUnitContextFactory. 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 classHTMLElement.ProxyDomNodeProxyDomNode.Methods in org.htmlunit.javascript.host.html that return HtmlElement Modifier and Type Method Description private HtmlElementHTMLFormElement. findFirstElement(java.lang.String name)HtmlElementHTMLElement. getDomNodeOrDie()Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.HtmlElementHTMLElement. getDomNodeOrNull()Returns the DOM node that corresponds to this JavaScript object or null if a node hasn't been set.(package private) HtmlElementHTMLDocument. 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.StringHTMLAnchorElement. getDefaultValue(HtmlElement element)(package private) HtmlElementHTMLDocument. getLastHtmlElement(HtmlElement node)Gets the node that is the last one when exploring following nodes, depth-first.private booleanHTMLFormElement. 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.StringHtmxOneNineTenScriptPreProcessor. preProcess(HtmlPage htmlPage, java.lang.String sourceCode, java.lang.String sourceName, int lineNumber, HtmlElement htmlElement)
-