【发布时间】:2018-06-08 17:02:44
【问题描述】:
我尝试在 Heroku 上运行以下 rake 任务:
require 'nokogiri'
require 'watir'
desc "where the good stuff happens"
task :get_interesting_data => :environment do
browser = Watir::Browser.new :firefox, headless: true
...some web scraping and other tasks...
end
我收到了错误
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.
...当我运行 rake 任务时。看起来以前在https://github.com/ivandeex/heroku-buildpack-firefox.git 有一个不再可用的构建包。关于如何进行此运行的任何想法?
【问题讨论】:
-
您自己找到解决方案了吗?我安装了 buildpacks,但仍然是同样的错误
-
没有。从来没有找到解决办法。
-
我已经开始赏金了,让我们看看是否有人认真研究一下。