Selenium::WebDriver::Error::SessionNotCreatedError:来自github中



2022-03-08 11:21:22警告Selenium[DEPRECATION][:driver_path]Selenium::WebDriver::Chrome#driver_path=已弃用。请改用Selenium::WebDriver::Chrome::Service#driver_path=。

加载spec_helper时出错。失败/错误:browser=Capybara.current_session.driver.browser

Selenium::WebDriver::Error::SessionNotCreatedError:会话未创建:此版本的ChromeDriver仅支持Chrome版本99当前浏览器版本为98.0.4758.102,二进制路径为/usr/bin/google chrome

错误消息准确解释了您的问题所在-您正在将chromedriver v99.x与Chrome v98.x一起使用,但这不起作用。与其尝试手动管理正在使用的chromedriver版本,只需使用webdriversgem为您自动管理即可。

最新更新