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 |
static void |
highlight(Path el)
Highlight the first element that match the path in the browser, for 2 seconds.
|
static void |
highlightAll(Path el)
Highlight all the elements that match the path in the browser, for 2 seconds.
|
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 void highlight(Path el)
el - - the definition of the element to highlightpublic static void highlightAll(Path el)
el - - the definition of the elements to highlightpublic static Document getPageAsW3CDoc()
PathParsers methodsCopyright © 2019. All rights reserved.