Table of Contents

Class HeadlessExperimentalAdapter

Namespace
OpenQA.Selenium.DevTools.V85.HeadlessExperimental
Assembly
WebDriver.dll

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

public class HeadlessExperimentalAdapter
Inheritance
HeadlessExperimentalAdapter
Inherited Members

Constructors

HeadlessExperimentalAdapter(IDevToolsSession)

Initializes a new instance of the HeadlessExperimentalAdapter class.

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

BeginFrame(BeginFrameCommandSettings, CancellationToken, int?, bool)

beginFrame

public Task<BeginFrameCommandResponse> BeginFrame(BeginFrameCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command BeginFrameCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<BeginFrameCommandResponse>

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>

Events

NeedsBeginFramesChanged

needsBeginFramesChanged

public event EventHandler<NeedsBeginFramesChangedEventArgs> NeedsBeginFramesChanged

Event Type

EventHandler<NeedsBeginFramesChangedEventArgs>