class Session

Alias for webdriver.Session

Contains information about a WebDriver session.

new Session(id, capabilities)

Parameters
idstring

The session ID.

capabilitiesObject

The session capabilities.

Instance Methods

getCapabilities()code »

Returns
webdriver.Capabilities

This session's capabilities.


getCapability(key)code »

Retrieves the value of a specific capability.

Parameters
keystring

The capability to retrieve.

Returns

The capability value.


getId()code »

Returns
string

This session's ID.


toJSON(arg0)code »

Returns the JSON representation of this object, which is just the string session ID.

Parameters
arg0string=
Returns
string

The JSON representation of this Session.