Table of Contents

Class IOAdapter

Namespace
OpenQA.Selenium.DevTools.V146.IO
Assembly
Selenium.WebDriver.dll

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

public class IOAdapter
Inheritance
IOAdapter
Inherited Members

Constructors

IOAdapter(IDevToolsSession)

Initializes a new instance of the IOAdapter class.

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

Close(CloseCommandSettings, CancellationToken, int?, bool)

Close the stream, discard any temporary backing storage.

public Task<CloseCommandResponse?> Close(CloseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command CloseCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<CloseCommandResponse>

Read(ReadCommandSettings, CancellationToken, int?, bool)

Read a chunk of the stream

public Task<ReadCommandResponse> Read(ReadCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ReadCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ReadCommandResponse>

ResolveBlob(ResolveBlobCommandSettings, CancellationToken, int?, bool)

Return UUID of Blob object specified by a remote object id.

public Task<ResolveBlobCommandResponse> ResolveBlob(ResolveBlobCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ResolveBlobCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ResolveBlobCommandResponse>