Contains information about a WebDriver session.
Constructor methods
constructor(id: string, capabilities: Capabilities): Session
Parameters
Returns
Session
constructor(id: string, capabilities: any): Session
Parameters
-
id: string
-
capabilities: any
Returns
Session
Methods
public getCapabilities(): Capabilities
Returns
Capabilities
This session's capabilities.
public getCapability(key: string): any
Retrieves the value of a specific capability.
Parameters
Returns
any
The capability value.
public getId(): string
Returns
string
This session's ID.
public toJSON(): string
Returns the JSON representation of this object, which is just the string
session ID.
Returns
string
The JSON representation of this Session.