Use firefox for Selenium in CircleCI 2.0

2019-09-02 07:37发布

问题:

In my CircleCI config.yml file I have the following:

docker:
  - image: circleci/ruby:2.5.3-browsers-legacy

In the CircleCI docs it says that by attaching -browsers-legacy to the language it will include Chrome, Firefox, Java 8 and PhantomJS

And I also tried adding to the config.yml:

- image: selenium/standalone-firefox:3.141.59

But I am still getting the error:

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.
       (Selenium::WebDriver::Error::WebDriverError)

What config should I use instead?