Uses of Class
org.htmlunit.html.HtmlElement
-
Packages that use HtmlElement Package Description com.xceptance.xlt.api.actions Provides abstract super classes for different types of actions.com.xceptance.xlt.api.util Provides various utility classes to make writing test cases easier.org.htmlunit Framework classes (contains theWebClientclass which is the main entry point).org.htmlunit.html Classes specific to HTML pages, particularly theHtmlPagewhich 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 HtmlElement Modifier and Type Method Description protected voidAbstractHtmlPageAction. loadPageByClick(HtmlElement element)Loads the page by "clicking" the passed HTML element.protected voidAbstractHtmlPageAction. loadPageByClick(HtmlElement element, long waitingTime)Loads the page by "clicking" the passed HTML element.protected voidAbstractHtmlPageAction. loadPageByDragAndDrop(HtmlElement draggable, HtmlElement dropTarget)Loads the page by drag and dropprotected voidAbstractHtmlPageAction. loadPageByDragAndDrop(HtmlElement draggable, HtmlElement dropTarget, long waitingTime)Loads the page by drag and dropprotected voidAbstractHtmlPageAction. loadPageByTypingKeys(HtmlElement element, java.lang.String text)Loads the page by typing keys.protected voidAbstractHtmlPageAction. loadPageByTypingKeys(HtmlElement element, java.lang.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 HtmlElement Modifier and Type Method Description static <T extends HtmlElement>
THtmlPageUtils. createHtmlElement(java.lang.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>
java.util.List<T>HtmlPageUtils. findHtmlElements(HtmlElement element, java.lang.String xpath)Finds HTML elements using the given XPath expression within the specified HTML element.static <T extends HtmlElement>
java.util.List<T>HtmlPageUtils. findHtmlElements(HtmlPage page, java.lang.String xpath)Finds HTML elements using the given XPath expression on the specified page.static <T extends HtmlElement>
THtmlPageUtils. findHtmlElementsAndPickOne(HtmlElement element, java.lang.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, java.lang.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, java.lang.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, java.lang.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, java.lang.String id)Finds the HTML element with the given ID on the specified page.static <T extends HtmlElement>
THtmlPageUtils. findSingleHtmlElementByXPath(HtmlElement element, java.lang.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, java.lang.String xpath)Finds a single HTML elements using the given XPath expression on the specified page.static <T extends HtmlElement>
java.util.List<T>HtmlPageUtils. waitForHtmlElements(HtmlPage page, java.lang.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 HtmlElement Modifier and Type Method Description static <T extends HtmlElement>
THtmlPageUtils. createHtmlElement(java.lang.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>
java.util.List<T>HtmlPageUtils. findHtmlElements(HtmlElement element, java.lang.String xpath)Finds HTML elements using the given XPath expression within the specified HTML element.static <T extends HtmlElement>
THtmlPageUtils. findHtmlElementsAndPickOne(HtmlElement element, java.lang.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, java.lang.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, java.lang.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, java.lang.String xpath)Finds a single HTML elements using the given XPath expression within the specified HTML element.static booleanHtmlPageUtils. isElementPresent(HtmlElement element, java.lang.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 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.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".classHtmlAppletWrapper for the HTML element "applet".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".classHtmlResetInputWrapper for the HTML element "input".classHtmlRpWrapper for the HTML element "rp".classHtmlRtWrapper for the HTML element "rt".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.<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.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 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>HtmlForm. getLostChildren()Gets the form elements that may be submitted but that don't belong to the form's children in the DOM due to incorrect HTML code.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 voidHtmlForm. addLostChild(HtmlElement field)INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Allows the parser to notify the form of a field that doesn't belong to its DOM children due to malformed HTML codeprotected 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.protected static voidHtmlElement. notifyAttributeChangeListeners(HtmlAttributeChangeEvent event, HtmlElement element, java.lang.String oldAttributeValue, boolean notifyMutationObservers)Recursively notifies allHtmlAttributeChangeListeners.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.
-