View Source Improve this doc

sessions

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

This command is deprecated and will be removed soon. Make sure you don’t use it in your automation/test scripts anymore to avoid errors.

Usage

1
browser.sessions();

Returns

  • <Object[]>: a list of the currently active sessions