如何在 ruby 中避免 "session not created exception"
How to avoid "session not created exception" in ruby
我正在使用 selenium,但似乎 chrome 浏览器更新破坏了我的测试环境,水豚测试正在抛出下一个:
Selenium::WebDriver::Error::WebDriverError:
session not created exception
from unknown error: Runtime.evaluate missing 'wasThrown'
我正在使用:
gem 'rspec', '~> 3.1.0'
gem 'capybara', '~> 2.4.4'
gem 'selenium-webdriver', '~> 2.47.1'
gem 'chromedriver-helper', '~> 1.0.0'
这里的情况是 chromedriver-helper 最新版本是我的,所以我想我需要更新 chrome 驱动程序但是 gem 自动安装它
我刚刚查看了 github.com 中的 gem 文档:
https://github.com/flavorjones/chromedriver-helper
然后我找到了下一个自动更新chromedriver的:
If you'd like to force-upgrade to the latest version of chromedriver,
run the script chromedriver-update that also comes packaged with this
gem.
所以只需申请:
$ chromedriver-update
我正在使用 selenium,但似乎 chrome 浏览器更新破坏了我的测试环境,水豚测试正在抛出下一个:
Selenium::WebDriver::Error::WebDriverError:
session not created exception
from unknown error: Runtime.evaluate missing 'wasThrown'
我正在使用:
gem 'rspec', '~> 3.1.0'
gem 'capybara', '~> 2.4.4'
gem 'selenium-webdriver', '~> 2.47.1'
gem 'chromedriver-helper', '~> 1.0.0'
这里的情况是 chromedriver-helper 最新版本是我的,所以我想我需要更新 chrome 驱动程序但是 gem 自动安装它
我刚刚查看了 github.com 中的 gem 文档:
https://github.com/flavorjones/chromedriver-helper
然后我找到了下一个自动更新chromedriver的:
If you'd like to force-upgrade to the latest version of chromedriver, run the script chromedriver-update that also comes packaged with this gem.
所以只需申请:
$ chromedriver-update