Table of Contents

Class LogAdapter

Namespace
OpenQA.Selenium.DevTools.V132.Log
Assembly
WebDriver.dll

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

public class LogAdapter
Inheritance
LogAdapter
Inherited Members

Constructors

LogAdapter(IDevToolsSession)

Initializes a new instance of the LogAdapter class.

public LogAdapter(IDevToolsSession session)

Parameters

session IDevToolsSession

The IDevToolsSession to be used with this adapter.

Properties

Session

Gets the DevToolsSession associated with the adapter.

public IDevToolsSession Session { get; }

Property Value

IDevToolsSession

Methods

Clear(ClearCommandSettings, CancellationToken, int?, bool)

clear

public Task<ClearCommandResponse> Clear(ClearCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ClearCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ClearCommandResponse>

Disable(DisableCommandSettings, CancellationToken, int?, bool)

disable

public Task<DisableCommandResponse> Disable(DisableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command DisableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<DisableCommandResponse>

Enable(EnableCommandSettings, CancellationToken, int?, bool)

enable

public Task<EnableCommandResponse> Enable(EnableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command EnableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<EnableCommandResponse>

StartViolationsReport(StartViolationsReportCommandSettings, CancellationToken, int?, bool)

startViolationsReport

public Task<StartViolationsReportCommandResponse> StartViolationsReport(StartViolationsReportCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command StartViolationsReportCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<StartViolationsReportCommandResponse>

StopViolationsReport(StopViolationsReportCommandSettings, CancellationToken, int?, bool)

stopViolationsReport

public Task<StopViolationsReportCommandResponse> StopViolationsReport(StopViolationsReportCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command StopViolationsReportCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<StopViolationsReportCommandResponse>

Events

EntryAdded

entryAdded

public event EventHandler<EntryAddedEventArgs> EntryAdded

Event Type

EventHandler<EntryAddedEventArgs>