java.lang.Object
org.openqa.selenium.devtools.v85.domdebugger.DOMDebugger

public class DOMDebugger extends Object
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 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 public static org.openqa.selenium.devtools.Command<Void> removeInstrumentationBreakpoint(String eventName)
      Removes breakpoint on particular native event.
    • removeXHRBreakpoint

      public static org.openqa.selenium.devtools.Command<Void> removeXHRBreakpoint(String url)
      Removes breakpoint from XMLHttpRequest.
    • 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 public static org.openqa.selenium.devtools.Command<Void> setInstrumentationBreakpoint(String eventName)
      Sets breakpoint on particular native event.
    • setXHRBreakpoint

      public static org.openqa.selenium.devtools.Command<Void> setXHRBreakpoint(String url)
      Sets breakpoint on XMLHttpRequest.