@testim/testim-cli
Version:
Command line interface for running Testing on you CI
29 lines (24 loc) • 827 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://code.google.com/p/selenium/wiki/JsonWireProtocol#Actual_Capabilities) |
*
* @returns {Object[]} a list of the currently active sessions
*
* @see https://code.google.com/p/selenium/wiki/JsonWireProtocol#/sessions
* @type protocol
*
*/
module.exports = function sessions() {
var requestOptions = {
path: '/sessions',
method: 'GET',
requiresSession: false
};
return this.requestHandler.create(requestOptions);
};