Table of Contents

Class CastAdapter

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

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

public class CastAdapter
Inheritance
CastAdapter
Inherited Members

Constructors

CastAdapter(IDevToolsSession)

Initializes a new instance of the CastAdapter class.

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

SetSinkToUse(SetSinkToUseCommandSettings, CancellationToken, int?, bool)

setSinkToUse

public Task<SetSinkToUseCommandResponse> SetSinkToUse(SetSinkToUseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetSinkToUseCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetSinkToUseCommandResponse>

StartDesktopMirroring(StartDesktopMirroringCommandSettings, CancellationToken, int?, bool)

startDesktopMirroring

public Task<StartDesktopMirroringCommandResponse> StartDesktopMirroring(StartDesktopMirroringCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command StartDesktopMirroringCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<StartDesktopMirroringCommandResponse>

StartTabMirroring(StartTabMirroringCommandSettings, CancellationToken, int?, bool)

startTabMirroring

public Task<StartTabMirroringCommandResponse> StartTabMirroring(StartTabMirroringCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command StartTabMirroringCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<StartTabMirroringCommandResponse>

StopCasting(StopCastingCommandSettings, CancellationToken, int?, bool)

stopCasting

public Task<StopCastingCommandResponse> StopCasting(StopCastingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command StopCastingCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<StopCastingCommandResponse>

Events

IssueUpdated

issueUpdated

public event EventHandler<IssueUpdatedEventArgs> IssueUpdated

Event Type

EventHandler<IssueUpdatedEventArgs>

SinksUpdated

sinksUpdated

public event EventHandler<SinksUpdatedEventArgs> SinksUpdated

Event Type

EventHandler<SinksUpdatedEventArgs>