Table of Contents

Class DOMStorageAdapter

Namespace
OpenQA.Selenium.DevTools.V131.DOMStorage
Assembly
WebDriver.dll

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

public class DOMStorageAdapter
Inheritance
DOMStorageAdapter
Inherited Members

Constructors

DOMStorageAdapter(IDevToolsSession)

Initializes a new instance of the DOMStorageAdapter class.

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

Clear(ClearCommandSettings, CancellationToken, int?, bool)

clear

public Task<ClearCommandResponse> Clear(ClearCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ClearCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ClearCommandResponse>

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>

GetDOMStorageItems(GetDOMStorageItemsCommandSettings, CancellationToken, int?, bool)

getDOMStorageItems

public Task<GetDOMStorageItemsCommandResponse> GetDOMStorageItems(GetDOMStorageItemsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetDOMStorageItemsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetDOMStorageItemsCommandResponse>

RemoveDOMStorageItem(RemoveDOMStorageItemCommandSettings, CancellationToken, int?, bool)

removeDOMStorageItem

public Task<RemoveDOMStorageItemCommandResponse> RemoveDOMStorageItem(RemoveDOMStorageItemCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command RemoveDOMStorageItemCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<RemoveDOMStorageItemCommandResponse>

SetDOMStorageItem(SetDOMStorageItemCommandSettings, CancellationToken, int?, bool)

setDOMStorageItem

public Task<SetDOMStorageItemCommandResponse> SetDOMStorageItem(SetDOMStorageItemCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetDOMStorageItemCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetDOMStorageItemCommandResponse>

Events

DomStorageItemAdded

domStorageItemAdded

public event EventHandler<DomStorageItemAddedEventArgs> DomStorageItemAdded

Event Type

EventHandler<DomStorageItemAddedEventArgs>

DomStorageItemRemoved

domStorageItemRemoved

public event EventHandler<DomStorageItemRemovedEventArgs> DomStorageItemRemoved

Event Type

EventHandler<DomStorageItemRemovedEventArgs>

DomStorageItemUpdated

domStorageItemUpdated

public event EventHandler<DomStorageItemUpdatedEventArgs> DomStorageItemUpdated

Event Type

EventHandler<DomStorageItemUpdatedEventArgs>

DomStorageItemsCleared

domStorageItemsCleared

public event EventHandler<DomStorageItemsClearedEventArgs> DomStorageItemsCleared

Event Type

EventHandler<DomStorageItemsClearedEventArgs>