我试图用URL启动Chrome,浏览器启动之后就什么也不做了。1分钟后,我看到以下错误:Unable to open browser with url: 'https://www.google.com' (Root cause: org.openqa.selenium.WebDriverException: unknown error:
DevToolsActivePort file doesn't exist
(Driver info: chromedriver=2.39.562718 (9a2698cba08cf5a471a29d30c8b3e12becabb0e9),platform=Windows NT 10.0.15063 x86_64)
(WARNING: The server did not provide any stacktrace information)我的配置:Chrome:66 ChromeBrowser:2.39.56P.S.火狐中的一切都很好
3 回答
德玛西亚99
TA贡献1770条经验 获得超3个赞
ChromeOptions options = new ChromeOptions(); ... options.addArguments("--no-sandbox"); options.addArguments("--disable-dev-shm-usage");
开心每一天1111
TA贡献1836条经验 获得超13个赞
chrome_options.add_argument('--headless')
添加回答
举报
0/150
提交
取消