public final class DebugUtil extends Object
InBrowserSinglton.| Modifier and Type | Method and Description |
|---|---|
static Optional<org.jsoup.nodes.Element> |
getDOM(Path el)
Same as
getDOMOfAll(Path), but returns an optional of the first match. |
static List<org.jsoup.nodes.Element> |
getDOMOfAll(Path el)
Get all matches of the path as a list of
Element. |
static Document |
getPageAsW3CDoc()
Download the current page and convert it to a W3C Document, which can be
inspected using the
PathParsers methods |
public static List<org.jsoup.nodes.Element> getDOMOfAll(Path el)
Element.
JSoup Element are a nice, readable way to examine DOM objects.
This is useful for troubleshooting.
This method relies on InBrowserSinglton, and on the library JSoup.el - the path we are looking forpublic static Optional<org.jsoup.nodes.Element> getDOM(Path el)
getDOMOfAll(Path), but returns an optional of the first match.el - the path we are looking forpublic static Document getPageAsW3CDoc()
PathParsers methodsCopyright © 2018. All rights reserved.