Only local connections are allowed Chrome and Selenium webdriver

前端 未结 12 1713
误落风尘
误落风尘 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:16

    1. Check the version of your installed Chrome browser.

    2. Download the compatible version of ChromeDriver from

      https://sites.google.com/a/chromium.org/chromedriver/

    3. Set the location of the compatible ChromeDriver to:

       System.setProperty("webdriver.chrome.driver", "C:\\Users\\your_path\\chromedriver.exe");
      
    4. Run the Test again.

    It should be good now.

提交回复
热议问题