Class ElementUtils

java.lang.Object
com.vaadin.browserless.internal.ElementUtils

public final class ElementUtils extends Object
Utilities for working with Elements.

For internal use only. May be renamed or removed in a future release.

  • Method Details

    • getTextIncludingInnerHtml

      public static String getTextIncludingInnerHtml(Element element)
      This function actually works, as opposed to Element.getTextRecursively().
      Parameters:
      element - the element, not null.
      Returns:
      the text contents of the element and all of its descendants.
    • getTextRecursively

      public static String getTextRecursively(org.jsoup.nodes.Node node)
      Returns the text contents of given jsoup node and all of its descendants.
      Parameters:
      node - the node, not null.
      Returns:
      the text contents.
    • _fireDomEvent

      public static void _fireDomEvent(Element element, DomEvent event)
      Fires a DOM event on given element.
      Parameters:
      element - the element, not null.
      event - the DOM event, not null.