Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k points)

I am using Chrome webdriver 2.23 & Selenium 2.53.1 I have tried a lot but could not come to the fix for this issue that whenever I run my selenium script it is giving me an error

Starting ChromeDriver 2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129) on port 12162

Only local connections are allowed.

1 Answer

0 votes
by (62.9k points)

This is just an informational message. Your issue might be because of the mismatch between the versions of chrome driver and selenium-server-standalone.

Try with the newest selenium version 3.0, it's working for me.

Please, note that for selenium 3.0 you would like to specify the driver 1st and then after the selenium server.

With the new selenium, which is 3.0 you must use:

java -Dwebdriver.chrome.driver=path_to_chrome_driver -jar selenium-server-standalone-3.0.0-beta2.jar

If you are using selenium version below 3.0 you need to reverse the order of selenium with the driver, like: 

java -Dwebdriver.chrome.driver=path_to_chrome_driver -jar selenium_server.jar

When you are starting the selenium server, open a console within the directory with the chrome driver and selenium server and execute this above the command.

Learn Selenium with the help of this Selenium Tutorial by Intellipaat.

If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s Selenium training!

Browse Categories

...