最近很多人用selenium webdriver,chrome自动化测试的时候,出现这个问题。
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException,
Error communication with the remote browser.It may have died.
原因都是最近谷歌浏览器升级了,Selenium驱动版本比较老,不支持所以报错。
解决方法就是:
降低谷歌浏览器的版本或者升级新的驱动chromedriver.exe
驱动下载地址:https://chromedriver.storage.googleapis.com/index.html
个人开发IT常用工具网站 https://www.huatools.com/
功能有 JSON格式化、XML格式化、URL格式化、Unix时间戳、Unicode转中文等。
欢迎访问,喜欢的话记得收藏哦 !
转载请注明原文地址: https://ju.6miu.com/read-674872.html