Package com.vaadin.browserless.internal
Class ElementUtils
java.lang.Object
com.vaadin.browserless.internal.ElementUtils
Utilities for working with
Elements.
For internal use only. May be renamed or removed in a future release.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void_fireDomEvent(Element element, DomEvent event) Fires a DOMeventon given element.static StringgetTextIncludingInnerHtml(Element element) This function actually works, as opposed toElement.getTextRecursively().static StringgetTextRecursively(org.jsoup.nodes.Node node) Returns the text contents of given jsoup node and all of its descendants.
-
Method Details
-
getTextIncludingInnerHtml
This function actually works, as opposed toElement.getTextRecursively().- Parameters:
element- the element, not null.- Returns:
- the text contents of the element and all of its descendants.
-
getTextRecursively
Returns the text contents of given jsoup node and all of its descendants.- Parameters:
node- the node, not null.- Returns:
- the text contents.
-
_fireDomEvent
Fires a DOMeventon given element.- Parameters:
element- the element, not null.event- the DOM event, not null.
-