自动化启动浏览器的错误信息如下:
Starting ChromeDriver 2.37. on port 62457
Only local connections are allowed.
报错原因:ChromeDriver和Chrome版本不兼容
解决:
①查看ChromeDriver的版本

【C#】自动化测试--ChromeDriver和Chrome版本不兼容:Starting ChromeDriver on port 2457 Olocal connections are allowed.

②查看Chrome
地址栏输入:chrome://version/

【C#】自动化测试--ChromeDriver和Chrome版本不兼容:Starting ChromeDriver on port 2457 Olocal connections are allowed.

③选择本地Chrome环境的驱动【http://npm.taobao.org/mirrors/chromedriver/】

【C#】自动化测试--ChromeDriver和Chrome版本不兼容:Starting ChromeDriver on port 2457 Olocal connections are allowed.

 

相关文章:

  • 2021-11-19
  • 2021-11-29
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2021-10-28
  • 2022-01-30
  • 2021-12-02
  • 2021-12-02
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案