gem selenium-webdriver 3.2.2
FF 51.0.1 (64位)
操作系统Ubuntu 16.04
我没有运行测试,却得到了错误。
Selenium::WebDriver::Error::WebDriverError:
Unable to find Mozilla geckodriver. Please download the server from https://github.com/mozilla/geckodriver/releases and place it somewhere on your PATH. More info at https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver.我建立了geckodriver 1.14.0,但错误仍然存在。
发布于 2017-06-22 01:40:31
把这个放到你的Gemfile上
# Gemfile
gem 'geckodriver-helper'然后在您的spec_helper文件中
Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(app, browser: :firefox)
endhttps://stackoverflow.com/questions/42596250
复制相似问题