Class DOMStorageAdapter
- Namespace
- OpenQA.Selenium.DevTools.V142.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
- sessionIDevToolsSession
- The IDevToolsSession to be used with this adapter. 
Exceptions
- ArgumentNullException
- If - sessionis null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }Property Value
Methods
Clear(ClearCommandSettings, CancellationToken, int?, bool)
clear
public Task<ClearCommandResponse?> Clear(ClearCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandClearCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDisableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEnableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetDOMStorageItems(GetDOMStorageItemsCommandSettings, CancellationToken, int?, bool)
getDOMStorageItems
public Task<GetDOMStorageItemsCommandResponse> GetDOMStorageItems(GetDOMStorageItemsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetDOMStorageItemsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
RemoveDOMStorageItem(RemoveDOMStorageItemCommandSettings, CancellationToken, int?, bool)
removeDOMStorageItem
public Task<RemoveDOMStorageItemCommandResponse?> RemoveDOMStorageItem(RemoveDOMStorageItemCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandRemoveDOMStorageItemCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetDOMStorageItem(SetDOMStorageItemCommandSettings, CancellationToken, int?, bool)
setDOMStorageItem
public Task<SetDOMStorageItemCommandResponse?> SetDOMStorageItem(SetDOMStorageItemCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetDOMStorageItemCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
DomStorageItemAdded
domStorageItemAdded
public event EventHandler<DomStorageItemAddedEventArgs>? DomStorageItemAddedEvent Type
DomStorageItemRemoved
domStorageItemRemoved
public event EventHandler<DomStorageItemRemovedEventArgs>? DomStorageItemRemovedEvent Type
DomStorageItemUpdated
domStorageItemUpdated
public event EventHandler<DomStorageItemUpdatedEventArgs>? DomStorageItemUpdatedEvent Type
DomStorageItemsCleared
domStorageItemsCleared
public event EventHandler<DomStorageItemsClearedEventArgs>? DomStorageItemsCleared