Class webdriver.Session
Defined in: session.js.
Constructor Attributes | Constructor Name and Description |
---|---|
webdriver.Session(id, capabilities)
Contains information about a WebDriver session.
|
Method Attributes | Method Name and Description |
---|---|
getCapability(key)
Retrieves the value of a specific capability.
|
|
getId()
|
|
toJSON()
Returns the JSON representation of this object, which is just the string
session ID.
|
Class Detail
webdriver.Session(id, capabilities)
Contains information about a WebDriver session.
- Parameters:
- {string} id
- The session ID.
- {!(Object|webdriver.Capabilities)} capabilities
- The session capabilities.
Method Detail
{!webdriver.Capabilities}
getCapabilities()
- Returns:
- {!webdriver.Capabilities} This session's capabilities.
{*}
getCapability(key)
Retrieves the value of a specific capability.
- Parameters:
- {string} key
- The capability to retrieve.
- Returns:
- {*} The capability value.
{string}
getId()
- Returns:
- {string} This session's ID.
{string}
toJSON()
Returns the JSON representation of this object, which is just the string
session ID.
- Returns:
- {string} The JSON representation of this Session.