How to run a selenium-server-standalone and grid/hub mode?

What is Selenium Server (Grid)?
The Selenium Server is needed in order to run Remote Selenium WebDriver (Grid).

Download Location – Click Here
https://www.selenium.dev/downloads/

As per GridRole class – Selenium server can run in one of the following roles:

  • NOT_GRID [If -role option is omitted the server runs standalone not being a part of a grid]>
  • HUB [as a hub of a Selenium grid]
  • NODE [as a node of a Selenium grid]

NOT_GRID RC (Selenium interface)- IP:Port/selenium-server:

Selenium Remote Control (RC) requires server to be started before executing the test scripts. RC server injects Selenium core (JavaScript) into the browser. The core (daemon process) receives commands from the server by your test scripts and executes them in a browser then results to your program. But cannot handle moving mouse cursors & mobile execution.

Java Client Driver: Client-Configures your browser to use the Selenium Server as an HTTP proxy and passes browser commands to server through “/selenium-server/RemoteRunner.html?sessionId=1234”, clients may send Driver Command requests to selenium server over HTTP as follows:

Code & Requests: RC Server continuously runs. we create a daemon and from that communicate with the browser.

HUB – Grid HUB Running as a standalone server:

Hub is a central point which distributing tests on several node-machines, which are registered to it for parallel execution.

NODE – [RC] has to post a request to HUB in order to register with it, by this URL – IP:Port//grid/register

Rajesh Kumar
Total Page Visits: 119 - Today Page Visits: 0