What is Selenium Router?
Overview
In this tutorial, we will learn about Selenium Router. Router grid component is new feature in Selenium 4.0 Grid Architecture.
Selenium Router
Router is the entry point of the client requests. Router can receive two types of requests.
- New session request
- ‘Sticky’ request to an existing session
When a Router receives a new request, the request is added to the Session Queue.
https://www.testingdocs.com/questions/what-is-selenium-session-queue/
Sticky request are requests for an existing session. If the request is sticky the Router will send the session-id information to the SessionMap, and in turn returns the worker node info where the existing session is currently running.
https://www.testingdocs.com/questions/what-is-selenium-sessionmap/
How to Start?
Launch command prompt or Terminal
Run the following command. Replace the jar name with the actual name within the angle brackets.
\> java -jar <selenium-4-server.jar> router –sessions <url> –distributor <distURL> –sessionqueue <queueURL>
To know more information on the command line switches issue the following command :
\> java -jar <selenium-server-4.jar> router –help
—
Selenium Tutorials on this website:
https://www.testingdocs.com/selenium-webdriver-tutorial/
Official Website: