Class RemoteSessionStorage
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
RemoteWebDriverThe driver instance.
Properties
Count
Gets the number of items in session storage.
public int Count { get; }
Property Value
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
stringThe key of the item in storage.
Returns
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
stringkey to be removed from the list
Returns
SetItem(string, string)
Sets session storage entry using given key/value pair.
public void SetItem(string key, string value)