Table of Contents

Class SessionId

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Provides a mechanism for maintaining a session for a test

public class SessionId
Inheritance
SessionId
Inherited Members

Constructors

SessionId(string)

Initializes a new instance of the SessionId class

public SessionId(string opaqueKey)

Parameters

opaqueKey string

Key for the session in use

Exceptions

ArgumentNullException

If opaqueKey is null.

Methods

Equals(object?)

Indicates whether the current session ID value is the same as obj.

public override bool Equals(object? obj)

Parameters

obj object

The session to compare to.

Returns

bool

true if the values are equal; otherwise, false.

GetHashCode()

Get the hash code of the key

public override int GetHashCode()

Returns

int

The hash code of the key

ToString()

Get the value of the key

public override string ToString()

Returns

string

The key in use