LoginSignup
7
7

More than 5 years have passed since last update.

SeleniumWebdriver の Chromeを入れる

Posted at

エラー

`executable_path': Unable to find the chromedriver executable. Please download the server from http://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH. More info at http://code.google.com/p/selenium/wiki/ChromeDriver. (Selenium::WebDriver::Error::WebDriverError)

エラーに書かれているページに行く

最新のディレクトリに行き、OSにあったzipをダウンロード

2.9

chromedriver_mac32.zip 2014-02-01 03:43:26 4.25MB

展開する

=> chromedriver

$PATHに置く

mv ~/Downloads/chromedriver /usr/local/bin/

プロキシ設定

プロキシ配下めんど・・・・
https_proxyをbash_profileに記載していると、no_proxyに127.0.0.1を入れておかないとダメらしい。

使う

require 'selenium-webdriver'

driver = Selenium::WebDriver.for :chrome
driver.quit
7
7
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
7
7