我看到下面的错误和浏览器之间的连接被断开了。它只发生在铬。我使用的Selenium版本是:
<groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.141.59</version>
错误堆栈跟踪:
[1579632222.785][SEVERE]: Unable to receive message from renderer org.openqa.selenium.WebDriverException: disconnected: not connected to DevTools (Session info: chrome=79.0.3945.117) Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'MBP15-PBJGH8.8x8.com', ip: 'fe80:0:0:0:1846:114d:10a6:bf26%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '1.8.0_201' Driver info: org.openqa.selenium.chrome.ChromeDriver