目前,我已经使用selenium-webdriver编写了我的整个黄瓜功能套件。我想从selenium-webdriver迁移到capybara-webkit。
我已经完成了所有必要的步骤,比如在Gemfile中注释掉selenium-webdriver,添加gem 'capybara-webkit', :git=> 'git://github.com/thoughtbot/capybara-webkit.git',并将这一行添加到我的features/support/env.rb中
Capybara.javascript_driver = :webkit但是我还是收到了这个错误信息。
Capybara's selenium driver is unable to load `selenium-webdriver`,
please install the gem and add `gem 'selenium-webdriver'` to your
Gemfile if you are using bundler. (LoadError)发布于 2013-07-25 01:36:21
我通过在应用程序的根目录运行此命令解决了此问题。
killall webkit_serverhttps://stackoverflow.com/questions/17290995
复制相似问题