Table of Contents

Class AdsAdapter

Namespace
OpenQA.Selenium.DevTools.V150.Ads
Assembly
Selenium.WebDriver.dll

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

public class AdsAdapter
Inheritance
AdsAdapter
Inherited Members

Constructors

AdsAdapter(IDevToolsSession)

Initializes a new instance of the AdsAdapter class.

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

GetAdMetrics(GetAdMetricsCommandSettings?, CancellationToken, int?, bool)

Retrieves ad metrics for the current page.

public Task<GetAdMetricsCommandResponse> GetAdMetrics(GetAdMetricsCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetAdMetricsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetAdMetricsCommandResponse>