Table of Contents

Class PerformanceAdapter

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

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

public class PerformanceAdapter
Inheritance
PerformanceAdapter
Inherited Members

Constructors

PerformanceAdapter(IDevToolsSession)

Initializes a new instance of the PerformanceAdapter class.

public PerformanceAdapter(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

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, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command EnableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<EnableCommandResponse>

GetMetrics(GetMetricsCommandSettings, CancellationToken, int?, bool)

getMetrics

public Task<GetMetricsCommandResponse> GetMetrics(GetMetricsCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetMetricsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetMetricsCommandResponse>

SetTimeDomain(SetTimeDomainCommandSettings, CancellationToken, int?, bool)

setTimeDomain

public Task<SetTimeDomainCommandResponse> SetTimeDomain(SetTimeDomainCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetTimeDomainCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetTimeDomainCommandResponse>

Events

Metrics

metrics

public event EventHandler<MetricsEventArgs> Metrics

Event Type

EventHandler<MetricsEventArgs>