Features

Get Selenium WebDriver SessionID

The Selenium WebDriver SessionID is a unique identifier for each of your tests. Usually it's returned in a UUID format.

You can use this unique identifier for your own purposes, or to use it in combination with the TestingBot API.

Please see the examples below on how to retrieve the SessionID:

Copy code
driver.session_id
Copy code
WebDriver driver = new RemoteWebDriver(new URL(URL), caps);
driver.getSessionId();
Copy code
$web_driver->getSessionID();
Copy code
driver.session_id
Copy code
const sessionId = await driver.getSession().then(session => session.getId())
Copy code
Driver.SessionId.ToString();

Using the Selenium SessionID

You can use the Selenium SessionID to mark a test as passed or failed.

You can also use the WebDriver sessionID to link to a test or share a test.