Site icon TestingDocs.com

What is Selenium SessionMap?

Overview

In this tutorial, we will learn about Selenium SessionMap. Session Map is a Selenium 4 Grid component that stores the session information for the distributed tests.

Selenium SessionMap

A SessionMap is a KV store(Key-Value). It stores session id and the capabilities. Custom Implementations session schemes of the data store can include

For JDBC Implementation of the data store, we need to have the JDBC driver and the supported backend database table to store the data.

We can create the table with the following sample schema:

CREATE TABLE sessions_map(
session_ids varchar(256),
session_caps varchar(1000),
session_uri varchar(256),
session_stereotype varchar(1000),
session_start varchar(256)
);


How to start?

Launch command prompt / Terminal. Make sure the Event Bus is up and running.

https://www.testingdocs.com/questions/what-is-selenium-event-bus/

Issue the following command:

\> java -jar <selenium4_server_jar> sessions

We can start the Session Queue component for queuing the requests.

Selenium Tutorials on this website:

https://www.testingdocs.com/selenium-webdriver-tutorial/

Official Website:

https://www.selenium.dev/

Exit mobile version