@christian-bromann/webdriverio
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
30 lines (27 loc) • 861 B
JavaScript
/**
*
* Returns a list of the currently active sessions. Each session will be returned
* as a list of JSON objects with the following keys:
*
* | Key | Type | Description |
* |--------------|--------|----------------|
* | id | string | The session ID |
* | capabilities | object | An object describing the [session capabilities](https://w3c.github.io/webdriver/webdriver-spec.html#capabilities) |
*
* (Not part of the official Webdriver specification).
*
* @returns {Object[]} a list of the currently active sessions
*
* @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessions
* @type protocol
* @depcrecated
*
*/
let sessions = function () {
return this.requestHandler.create({
path: '/sessions',
method: 'GET',
requiresSession: false
})
}
export default sessions