Hemanth Sridhar
1 min readJun 8, 2020

--

shailendra Kk

Here are the corresponding answers to the questions you have asked.

  1. What is the node command for xvfb-run -a -s “-screen 0 1280x1024x24 -wr” <video node start command>

Firstly, xvfb-run -a -s “-screen 0 1280x1024x24 -wr” is only required for Linux.

These are the below commands

For linux :

Hub

java -cp selenium-video-node-2.9.jar:selenium-server-standalone-3.141.59.jar org.openqa.grid.selenium.GridLauncherV3 -servlets com.aimmac23.hub.servlet.HubVideoDownloadServlet -role hub

Node

java -cp selenium-video-node-2.9.jar:selenium-server-standalone-3.141.59.jar org.openqa.grid.selenium.GridLauncherV3 -servlets com.aimmac23.node.servlet.VideoRecordingControlServlet -proxy com.aimmac23.hub.proxy.VideoProxy -role node -hub http://localhost:4444/grid/register

For windows :

Hub

java -cp selenium-video-node-2.9.jar;selenium-server-standalone-3.141.59.jar org.openqa.grid.selenium.GridLauncherV3 -servlets com.aimmac23.hub.servlet.HubVideoDownloadServlet -role hub

Node

java -cp selenium-video-node-2.9.jar;selenium-server-standalone-3.141.59.jar org.openqa.grid.selenium.GridLauncherV3 -servlets com.aimmac23.node.servlet.VideoRecordingControlServlet -proxy com.aimmac23.hub.proxy.VideoProxy -role node -hub http://localhost:4444/grid/register

So your command will look something like this.

xvfb-run -a -s “-screen 0 1280x1024x24 -wr”java -cp selenium-video-node-2.9.jar:selenium-server-standalone-3.141.59.jar org.openqa.grid.selenium.GridLauncherV3 -servlets com.aimmac23.hub.servlet.HubVideoDownloadServlet -role hub

2. Also the code for video recording is for Selenium grid locally only?

Answer : No. The selenium grid in general can we setup within your in-house VMs to even docker containers. The code I have provided can be used locally as well in VMs and within a container based environment.

I hope I have answered your questions!

--

--

Hemanth Sridhar
Hemanth Sridhar

Written by Hemanth Sridhar

Staff Software Engineer @Harness

No responses yet