Class DOMStorageAdapter
- Namespace
- OpenQA.Selenium.DevTools.V130.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
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
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
command
ClearCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Disable(DisableCommandSettings, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse> Disable(DisableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse> Enable(EnableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetDOMStorageItems(GetDOMStorageItemsCommandSettings, CancellationToken, int?, bool)
getDOMStorageItems
public Task<GetDOMStorageItemsCommandResponse> GetDOMStorageItems(GetDOMStorageItemsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetDOMStorageItemsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
RemoveDOMStorageItem(RemoveDOMStorageItemCommandSettings, CancellationToken, int?, bool)
removeDOMStorageItem
public Task<RemoveDOMStorageItemCommandResponse> RemoveDOMStorageItem(RemoveDOMStorageItemCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
RemoveDOMStorageItemCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetDOMStorageItem(SetDOMStorageItemCommandSettings, CancellationToken, int?, bool)
setDOMStorageItem
public Task<SetDOMStorageItemCommandResponse> SetDOMStorageItem(SetDOMStorageItemCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetDOMStorageItemCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
DomStorageItemAdded
domStorageItemAdded
public event EventHandler<DomStorageItemAddedEventArgs> DomStorageItemAdded
Event Type
DomStorageItemRemoved
domStorageItemRemoved
public event EventHandler<DomStorageItemRemovedEventArgs> DomStorageItemRemoved
Event Type
DomStorageItemUpdated
domStorageItemUpdated
public event EventHandler<DomStorageItemUpdatedEventArgs> DomStorageItemUpdated
Event Type
DomStorageItemsCleared
domStorageItemsCleared
public event EventHandler<DomStorageItemsClearedEventArgs> DomStorageItemsCleared