Table of Contents

Class StorageAdapter

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

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

public class StorageAdapter
Inheritance
StorageAdapter
Inherited Members

Constructors

StorageAdapter(IDevToolsSession)

Initializes a new instance of the StorageAdapter class.

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

ClearCookies(ClearCookiesCommandSettings, CancellationToken, int?, bool)

clearCookies

public Task<ClearCookiesCommandResponse> ClearCookies(ClearCookiesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ClearCookiesCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ClearCookiesCommandResponse>

ClearDataForOrigin(ClearDataForOriginCommandSettings, CancellationToken, int?, bool)

clearDataForOrigin

public Task<ClearDataForOriginCommandResponse> ClearDataForOrigin(ClearDataForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ClearDataForOriginCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ClearDataForOriginCommandResponse>

GetCookies(GetCookiesCommandSettings, CancellationToken, int?, bool)

getCookies

public Task<GetCookiesCommandResponse> GetCookies(GetCookiesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetCookiesCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetCookiesCommandResponse>

GetUsageAndQuota(GetUsageAndQuotaCommandSettings, CancellationToken, int?, bool)

getUsageAndQuota

public Task<GetUsageAndQuotaCommandResponse> GetUsageAndQuota(GetUsageAndQuotaCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetUsageAndQuotaCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetUsageAndQuotaCommandResponse>

SetCookies(SetCookiesCommandSettings, CancellationToken, int?, bool)

setCookies

public Task<SetCookiesCommandResponse> SetCookies(SetCookiesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetCookiesCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetCookiesCommandResponse>

TrackCacheStorageForOrigin(TrackCacheStorageForOriginCommandSettings, CancellationToken, int?, bool)

trackCacheStorageForOrigin

public Task<TrackCacheStorageForOriginCommandResponse> TrackCacheStorageForOrigin(TrackCacheStorageForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command TrackCacheStorageForOriginCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<TrackCacheStorageForOriginCommandResponse>

TrackIndexedDBForOrigin(TrackIndexedDBForOriginCommandSettings, CancellationToken, int?, bool)

trackIndexedDBForOrigin

public Task<TrackIndexedDBForOriginCommandResponse> TrackIndexedDBForOrigin(TrackIndexedDBForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command TrackIndexedDBForOriginCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<TrackIndexedDBForOriginCommandResponse>

UntrackCacheStorageForOrigin(UntrackCacheStorageForOriginCommandSettings, CancellationToken, int?, bool)

untrackCacheStorageForOrigin

public Task<UntrackCacheStorageForOriginCommandResponse> UntrackCacheStorageForOrigin(UntrackCacheStorageForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command UntrackCacheStorageForOriginCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<UntrackCacheStorageForOriginCommandResponse>

UntrackIndexedDBForOrigin(UntrackIndexedDBForOriginCommandSettings, CancellationToken, int?, bool)

untrackIndexedDBForOrigin

public Task<UntrackIndexedDBForOriginCommandResponse> UntrackIndexedDBForOrigin(UntrackIndexedDBForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command UntrackIndexedDBForOriginCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<UntrackIndexedDBForOriginCommandResponse>

Events

CacheStorageContentUpdated

cacheStorageContentUpdated

public event EventHandler<CacheStorageContentUpdatedEventArgs> CacheStorageContentUpdated

Event Type

EventHandler<CacheStorageContentUpdatedEventArgs>

CacheStorageListUpdated

cacheStorageListUpdated

public event EventHandler<CacheStorageListUpdatedEventArgs> CacheStorageListUpdated

Event Type

EventHandler<CacheStorageListUpdatedEventArgs>

IndexedDBContentUpdated

indexedDBContentUpdated

public event EventHandler<IndexedDBContentUpdatedEventArgs> IndexedDBContentUpdated

Event Type

EventHandler<IndexedDBContentUpdatedEventArgs>

IndexedDBListUpdated

indexedDBListUpdated

public event EventHandler<IndexedDBListUpdatedEventArgs> IndexedDBListUpdated

Event Type

EventHandler<IndexedDBListUpdatedEventArgs>