Hi guys,
I'm using selenium with node JS and I want to lanch tests over a network by selenium grid, but chromedriver on a node display the follow message: "only local connections are allowed" and the test don't run.
Is there a way to set whitelisted_ips as chromedriver's argument from selenium capabilities?
For example to be clear I do something like that:
const webdriver = require('selenium-webdriver');
const chromedriver = require('chromedriver');
const chrome = require('selenium-webdriver/chrome');
var capabilities = webdriver.Capabilities.chrome();
capabilities.set('goog:chromeOptions', {args : browserOptions});
capabilities.set("webdriver.chrome", {args : ["--whitelisted-ips=''"]});
var driver = new webdriver.Builder()
.forBrowser("chrome")
.withCapabilities(capabilities)
.usingServer(myHubIP)
.build();
driver.get(myPageTest);
The command arrive to the node but it don't be runned, so i think that the problem is that chromedriver accept only local connection to run the command.
Can someone help me to solve this problem?
The machines that I use to test is completely open, there is no Firewall and they are not behind NAT.