2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Firefox 52, Selenium WebDriver がエラー、Geckodriver 0.15 が必要

Posted at

Error

Ruby on Rails Seleium WebDriverで Firefox を動かしていたら、ある日エラーで止まる。

#<Selenium::WebDriver::Error::SessionNotCreatedError: TypeError: Given browserVersion [object String] "any", but current version is [object String] "52.0.2">

bundle update

geckodriver 0.15 には selenium-webdriver 3.3.0 以上が必要とのことなのでUpdateする。

$ bundle update

Installing selenium-webdriver 3.3.0 (was 3.0.4)

geckodriver

現 version 確認

$ /usr/local/bin/geckodriver --version

geckodriver 0.11.1

0.15 を取得

上書き

$ tar -zxvf ./geckodriver-v0.15.0-macos.tar.gz
$ mv geckodriver /usr/local/bin/

version 確認

$ /usr/local/bin/geckodriver --version

geckodriver 0.15.0

以上

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?