Table of Contents

Class DatabaseAdapter

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

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

public class DatabaseAdapter
Inheritance
DatabaseAdapter
Inherited Members

Constructors

DatabaseAdapter(IDevToolsSession)

Initializes a new instance of the DatabaseAdapter class.

public DatabaseAdapter(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 = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command EnableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<EnableCommandResponse>

ExecuteSQL(ExecuteSQLCommandSettings, CancellationToken, int?, bool)

executeSQL

public Task<ExecuteSQLCommandResponse> ExecuteSQL(ExecuteSQLCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ExecuteSQLCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ExecuteSQLCommandResponse>

GetDatabaseTableNames(GetDatabaseTableNamesCommandSettings, CancellationToken, int?, bool)

getDatabaseTableNames

public Task<GetDatabaseTableNamesCommandResponse> GetDatabaseTableNames(GetDatabaseTableNamesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetDatabaseTableNamesCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetDatabaseTableNamesCommandResponse>

Events

AddDatabase

addDatabase

public event EventHandler<AddDatabaseEventArgs> AddDatabase

Event Type

EventHandler<AddDatabaseEventArgs>