Table of Contents

Class DOMDebuggerAdapter

Namespace
OpenQA.Selenium.DevTools.V146.DOMDebugger
Assembly
Selenium.WebDriver.dll

Represents an adapter for the DOMDebugger domain to simplify the command interface.

public class DOMDebuggerAdapter
Inheritance
DOMDebuggerAdapter
Inherited Members

Constructors

DOMDebuggerAdapter(IDevToolsSession)

Initializes a new instance of the DOMDebuggerAdapter class.

public DOMDebuggerAdapter(IDevToolsSession session)

Parameters

session IDevToolsSession

The IDevToolsSession to be used with this adapter.

Exceptions

ArgumentNullException

If session is null.

Properties

Session

Gets the DevToolsSession associated with the adapter.

public IDevToolsSession Session { get; }

Property Value

IDevToolsSession

Methods

GetEventListeners(GetEventListenersCommandSettings, CancellationToken, int?, bool)

Returns event listeners of the given object.

public Task<GetEventListenersCommandResponse> GetEventListeners(GetEventListenersCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetEventListenersCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetEventListenersCommandResponse>

RemoveDOMBreakpoint(RemoveDOMBreakpointCommandSettings, CancellationToken, int?, bool)

Removes DOM breakpoint that was set using setDOMBreakpoint.

public Task<RemoveDOMBreakpointCommandResponse?> RemoveDOMBreakpoint(RemoveDOMBreakpointCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command RemoveDOMBreakpointCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<RemoveDOMBreakpointCommandResponse>

RemoveEventListenerBreakpoint(RemoveEventListenerBreakpointCommandSettings, CancellationToken, int?, bool)

Removes breakpoint on particular DOM event.

public Task<RemoveEventListenerBreakpointCommandResponse?> RemoveEventListenerBreakpoint(RemoveEventListenerBreakpointCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command RemoveEventListenerBreakpointCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<RemoveEventListenerBreakpointCommandResponse>

RemoveInstrumentationBreakpoint(RemoveInstrumentationBreakpointCommandSettings, CancellationToken, int?, bool)

Removes breakpoint on particular native event.

public Task<RemoveInstrumentationBreakpointCommandResponse?> RemoveInstrumentationBreakpoint(RemoveInstrumentationBreakpointCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command RemoveInstrumentationBreakpointCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<RemoveInstrumentationBreakpointCommandResponse>

RemoveXHRBreakpoint(RemoveXHRBreakpointCommandSettings, CancellationToken, int?, bool)

Removes breakpoint from XMLHttpRequest.

public Task<RemoveXHRBreakpointCommandResponse?> RemoveXHRBreakpoint(RemoveXHRBreakpointCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command RemoveXHRBreakpointCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<RemoveXHRBreakpointCommandResponse>

SetBreakOnCSPViolation(SetBreakOnCSPViolationCommandSettings, CancellationToken, int?, bool)

Sets breakpoint on particular CSP violations.

public Task<SetBreakOnCSPViolationCommandResponse?> SetBreakOnCSPViolation(SetBreakOnCSPViolationCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetBreakOnCSPViolationCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetBreakOnCSPViolationCommandResponse>

SetDOMBreakpoint(SetDOMBreakpointCommandSettings, CancellationToken, int?, bool)

Sets breakpoint on particular operation with DOM.

public Task<SetDOMBreakpointCommandResponse?> SetDOMBreakpoint(SetDOMBreakpointCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetDOMBreakpointCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetDOMBreakpointCommandResponse>

SetEventListenerBreakpoint(SetEventListenerBreakpointCommandSettings, CancellationToken, int?, bool)

Sets breakpoint on particular DOM event.

public Task<SetEventListenerBreakpointCommandResponse?> SetEventListenerBreakpoint(SetEventListenerBreakpointCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetEventListenerBreakpointCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetEventListenerBreakpointCommandResponse>

SetInstrumentationBreakpoint(SetInstrumentationBreakpointCommandSettings, CancellationToken, int?, bool)

Sets breakpoint on particular native event.

public Task<SetInstrumentationBreakpointCommandResponse?> SetInstrumentationBreakpoint(SetInstrumentationBreakpointCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetInstrumentationBreakpointCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetInstrumentationBreakpointCommandResponse>

SetXHRBreakpoint(SetXHRBreakpointCommandSettings, CancellationToken, int?, bool)

Sets breakpoint on XMLHttpRequest.

public Task<SetXHRBreakpointCommandResponse?> SetXHRBreakpoint(SetXHRBreakpointCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetXHRBreakpointCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetXHRBreakpointCommandResponse>