Class DOMDebugger
java.lang.Object
org.openqa.selenium.devtools.v126.domdebugger.DOMDebugger
DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript
execution will stop on these operations as if there was a regular breakpoint set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Command<List<EventListener>>
getEventListeners
(RemoteObjectId objectId, Optional<Integer> depth, Optional<Boolean> pierce) Returns event listeners of the given object.static org.openqa.selenium.devtools.Command<Void>
removeDOMBreakpoint
(NodeId nodeId, DOMBreakpointType type) Removes DOM breakpoint that was set using `setDOMBreakpoint`.static org.openqa.selenium.devtools.Command<Void>
removeEventListenerBreakpoint
(String eventName, Optional<String> targetName) Removes breakpoint on particular DOM event.static org.openqa.selenium.devtools.Command<Void>
removeInstrumentationBreakpoint
(String eventName) Deprecated.static org.openqa.selenium.devtools.Command<Void>
Removes breakpoint from XMLHttpRequest.static org.openqa.selenium.devtools.Command<Void>
setBreakOnCSPViolation
(List<CSPViolationType> violationTypes) Sets breakpoint on particular CSP violations.static org.openqa.selenium.devtools.Command<Void>
setDOMBreakpoint
(NodeId nodeId, DOMBreakpointType type) Sets breakpoint on particular operation with DOM.static org.openqa.selenium.devtools.Command<Void>
setEventListenerBreakpoint
(String eventName, Optional<String> targetName) Sets breakpoint on particular DOM event.static org.openqa.selenium.devtools.Command<Void>
setInstrumentationBreakpoint
(String eventName) Deprecated.static org.openqa.selenium.devtools.Command<Void>
setXHRBreakpoint
(String url) Sets breakpoint on XMLHttpRequest.
-
Constructor Details
-
DOMDebugger
public DOMDebugger()
-
-
Method Details
-
getEventListeners
public static org.openqa.selenium.devtools.Command<List<EventListener>> getEventListeners(RemoteObjectId objectId, Optional<Integer> depth, Optional<Boolean> pierce) Returns event listeners of the given object. -
removeDOMBreakpoint
public static org.openqa.selenium.devtools.Command<Void> removeDOMBreakpoint(NodeId nodeId, DOMBreakpointType type) Removes DOM breakpoint that was set using `setDOMBreakpoint`. -
removeEventListenerBreakpoint
public static org.openqa.selenium.devtools.Command<Void> removeEventListenerBreakpoint(String eventName, Optional<String> targetName) Removes breakpoint on particular DOM event. -
removeInstrumentationBreakpoint
@Beta @Deprecated public static org.openqa.selenium.devtools.Command<Void> removeInstrumentationBreakpoint(String eventName) Deprecated.Removes breakpoint on particular native event. -
removeXHRBreakpoint
Removes breakpoint from XMLHttpRequest. -
setBreakOnCSPViolation
@Beta public static org.openqa.selenium.devtools.Command<Void> setBreakOnCSPViolation(List<CSPViolationType> violationTypes) Sets breakpoint on particular CSP violations. -
setDOMBreakpoint
public static org.openqa.selenium.devtools.Command<Void> setDOMBreakpoint(NodeId nodeId, DOMBreakpointType type) Sets breakpoint on particular operation with DOM. -
setEventListenerBreakpoint
public static org.openqa.selenium.devtools.Command<Void> setEventListenerBreakpoint(String eventName, Optional<String> targetName) Sets breakpoint on particular DOM event. -
setInstrumentationBreakpoint
@Beta @Deprecated public static org.openqa.selenium.devtools.Command<Void> setInstrumentationBreakpoint(String eventName) Deprecated.Sets breakpoint on particular native event. -
setXHRBreakpoint
Sets breakpoint on XMLHttpRequest.
-