Selenium grid in node

You can also use standalone server to run your tests. Just start the server using below command.
java -jar selenium-server-standalone.jar

By default server (Hub) starts running at https://localhost:4444/wd/hub
//To connect to Grid, you will have to use below syntax.

var assert = require(‘assert’);
var webdriver = require(‘selenium-webdriver’),
By = webdriver.By,
until = webdriver.until;

var chrome = require(“selenium-webdriver/chrome”);

var driver = new webdriver.Builder()



You can use below command to run tests on grid.
//SELENIUM_REMOTE_URL=”https://localhost:4444/wd/hub” node yourscript.js

Complex problems, Simple Solutions