Class PerformanceAdapter
- Namespace
- OpenQA.Selenium.DevTools.V142.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
- sessionIDevToolsSession
- The IDevToolsSession to be used with this adapter. 
Exceptions
- ArgumentNullException
- If - sessionis null.
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
- commandDisableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEnableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetMetrics(GetMetricsCommandSettings?, CancellationToken, int?, bool)
getMetrics
public Task<GetMetricsCommandResponse> GetMetrics(GetMetricsCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetMetricsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetTimeDomain(SetTimeDomainCommandSettings, CancellationToken, int?, bool)
setTimeDomain
public Task<SetTimeDomainCommandResponse?> SetTimeDomain(SetTimeDomainCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetTimeDomainCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
Metrics
metrics
public event EventHandler<MetricsEventArgs>? Metrics