Class PerformanceAdapter
- Namespace
- OpenQA.Selenium.DevTools.V131.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
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
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
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse> Enable(EnableCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetMetrics(GetMetricsCommandSettings, CancellationToken, int?, bool)
getMetrics
public Task<GetMetricsCommandResponse> GetMetrics(GetMetricsCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetMetricsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetTimeDomain(SetTimeDomainCommandSettings, CancellationToken, int?, bool)
setTimeDomain
public Task<SetTimeDomainCommandResponse> SetTimeDomain(SetTimeDomainCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetTimeDomainCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
Metrics
metrics
public event EventHandler<MetricsEventArgs> Metrics