selenium-standalone
selenium-standalone copied to clipboard
selenium-standalone start -port 5555 doesn't run on port 5555 but runs on port 4444
selenium-standalone start -port 5555 doesn't run on port 5555 but runs on port 4444.
Since -port is an argument for the selenium process itself (not this wrapper), it needs to be added after the -- argument.
$ ./bin/selenium-standalone start -- -port 5555
09:40:00.550 INFO - Launching a standalone Selenium Server
...
09:40:00.709 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:5555/wd/hub
09:40:00.709 INFO - Selenium Server is up and running
Selenium started
@navinjoy Can you give that a try and let me know if it works for you?
@stephenash thank you... that worked 👍 and how can I use it in selenium-standalone.start([opts], cb) function. Tried the below one but that's not working.
selenium_standalone.start({port:5555},function(err, child) {
if (err) {
grunt.log.error(err);
return;
}
process.on("exit", function() {
child.kill();
});
});
You need to pass it to seleniumArgs: {port}, see https://github.com/vvo/selenium-standalone#seleniumstartopts-cb