Table of Contents

Class RemoteSessionStorage

Namespace
OpenQA.Selenium.Remote
Assembly
WebDriver.dll

Defines the interface through which the user can manipulate session storage.

public class RemoteSessionStorage : ISessionStorage
Inheritance
RemoteSessionStorage
Implements
Inherited Members

Constructors

RemoteSessionStorage(RemoteWebDriver)

Initializes a new instance of the RemoteSessionStorage class.

public RemoteSessionStorage(RemoteWebDriver driver)

Parameters

driver RemoteWebDriver

The driver instance.

Properties

Count

Gets the number of items in session storage.

public int Count { get; }

Property Value

int

Methods

Clear()

Removes all entries from the session storage.

public void Clear()

GetItem(string)

Returns session storage value given a key.

public string GetItem(string key)

Parameters

key string

The key of the item in storage.

Returns

string

A session storage string value given a key, if present, otherwise return null.

KeySet()

Returns a read-only list of session storage keys.

public ReadOnlyCollection<string> KeySet()

Returns

ReadOnlyCollection<string>

A read-only list of session storage keys.

RemoveItem(string)

Removes session storage entry for the given key.

public string RemoveItem(string key)

Parameters

key string

key to be removed from the list

Returns

string

Response value stringfor the given key.

SetItem(string, string)

Sets session storage entry using given key/value pair.

public void SetItem(string key, string value)

Parameters

key string

Session storage key

value string

Session storage value