Only local connections are allowed Chrome and Selenium webdriver

前端 未结 12 1677
误落风尘
误落风尘 2020-11-30 05:59

I am using Chrome webdriver 2.23 & Selenium 2.53.1. I have tried a lot, but could not get it fixed. Whenever I run my selenium script, it is giving me the following err

12条回答
  •  抹茶落季
    2020-11-30 06:07

    This is just an informational message. Your issue might be a missmatch between the versions of chromedriver and selenium-server-standalone.

    Try with the latest selenium version 3.0, it is working for me.

    Please not that for selenium 3.0 you need to specify the driver first and after the selenium server.

    With the new selenium, which is 3.0 you should 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 in the directory with chromedriver and selenium server and execute the above command.

提交回复
热议问题