I want to run the selenium test cases in the remote machine. These are the steps I have followed:
Steps I did in server machine:
I have downloaded selenium-server-standalone-3.9.1.jar + Chrome Driver & placed it in a folder and added it to $PATH environmental variable.
I have started selenium server using
java -jar selenium-server-standalone-3.9.1.jar -role hub
in the Terminal.
Steps I did in local machine:
I have installed selenium-webdriver & selenium-server-standalone-3.9.1.jar
I wrote a sample testcase using selenium webdriver.
I have started a node here using command
java -jar selenium-server-standalone-3.9.1.ja-role node -hub http://172.24.111.70:4444/grid/register
in the terminal. The node got connected to the hub.I run the command
node test.js
in the terminal. I expect the chrome instance to open in the remote machine. But it is running in the local machine.
Screenshots: Hub:(Remote) Node:(Local)
Can you please explain me the mistake I have did here? Have I understood the concept wrong?