[英]Selenium Webdriver tests not running on Chrome headless due to “unable to connect to renderer” error
Chrome version running: 67.0.3396.79 Chrome运行版本:67.0.3396.79
Chromedriver version: 2.40.0 ( https://www.npmjs.com/package/chromedriver ) Chromedriver版本:2.40.0( https://www.npmjs.com/package/chromedriver )
When running the selenium webdriver tests in Chrome headless mode, getting error: 在Chrome无头模式下运行Selenium Webdriver测试时,出现错误:
SessionNotCreatedError: session not created exception
from disconnected: unable to connect to renderer
(Session info: headless chrome=67.0.3396.79)
(Driver info: chromedriver=2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7),platform=Linux 3.13.0-74-generic x86_64)
at Object.checkLegacyResponse (/home/jenkins/workspace/1-sunrise-e2e-tests-dev/node_modules/selenium-webdriver/lib/error.js:546:15)
Goodness me! 天啊! Looks like the issue was with '--remote-debugging-port=9222', which I added to the headless Chrome options, removing that, fixed it.
看起来问题出在'--remote-debugging-port = 9222',我将其添加到无头Chrome选项中,将其删除并修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.