public class Debug
extends java.lang.Object
Browser.debug()
.
This class can be used to highlight elements on the page or to stop the execution until a button is pressed.
Constructor and Description |
---|
Debug(Browser browser)
Constructs new BrowserDebug instance for additional debug methods for developers.
|
Modifier and Type | Method and Description |
---|---|
void |
breakpoint()
Debug method which stops the execution of the application and creates a "Continue"
button at the top-left corner of the page.
|
void |
highlight(HtmlElement element)
Debug method which highlights the given
HtmlElement with a red dashed border. |
void |
highlight(HtmlElements elements)
Debug method which highlights all given
HtmlElements with a red dashed border. |
void |
highlight(java.lang.String query)
Debug method which searches for an element with the given query string and highlights it with a red dashed border.
|
public Debug(Browser browser)
browser
- Browser
instance to work withpublic void highlight(HtmlElement element)
HtmlElement
with a red dashed border.element
- the element to highlightpublic void highlight(HtmlElements elements)
HtmlElements
with a red dashed border.elements
- highlight(HtmlElement)
public void highlight(java.lang.String query)
query
- the element to highlightpublic void breakpoint()