LoginSignup
7
8

More than 3 years have passed since last update.

MacでSeleniumを使えるようにする

Last updated at Posted at 2018-09-05

はじめに

Chromeドライバを入れようとして、brewで入れられる情報がなかなか見つけられなかったので、ここに書きます。

環境

ソフト version
Mac Sierra 10.12.6
Python 3.6.0
Selenium 3.14.0
ChromeDriver 2.41
Chrome 68.0.3440.106
brew 1.7.3

Seleniumインストール

$ pip install selenium

Chromeドライバのインストール

$ brew tap homebrew/cask
$ brew cask install chromedriver

補足

Chrome以外にも、Edge, Firefox, Safariのドライバがあります。
以下のページからダウンロードできます。
https://pypi.org/project/selenium/

Chromeドライバは、ダウンロードする方法もあります。
以下のページに詳細があります。
https://sites.google.com/a/chromium.org/chromedriver/home

参考URL

https://pypi.org/project/selenium/
https://sites.google.com/a/chromium.org/chromedriver/downloads

7
8
1

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
8