Mac安装Chromedriver

Mac安装Chromedriver

Brew Install

在终端中输入

1
brew install chromedriver

可能会出现以下文字

1
2
3
4
5
6
7
8
9
10
11
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
.........此处省去一万行..........
Error: No available formula with the name "chromedriver"
It was migrated from homebrew/core to homebrew/cask.
You can access it again by running:
brew tap homebrew/cask
And then you can install it by running:
brew cask install chromedriver

按照上面的提示 输入

1
brew cask install chromedriver

如果顺利会出现

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
cfn-lint
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 4113, done.
remote: Counting objects: 100% (4113/4113), done.
remote: Compressing objects: 100% (4101/4101), done.
remote: Total 4113 (delta 24), reused 853 (delta 10), pack-reused 0
Receiving objects: 100% (4113/4113), 1.32 MiB | 126.00 KiB/s, done.
Resolving deltas: 100% (24/24), done.
Checking out files: 100% (4094/4094), done.
Tapped 1 command and 4005 casks (4,119 files, 4.2MB).
==> Satisfying dependencies
==> Downloading https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_mac64.zip
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'chromedriver'.
==> Installing Cask chromedriver
==> Linking Binary 'chromedriver' to '/usr/local/bin/chromedriver'.
🍺 chromedriver was successfully installed!

手动下载

查看你电脑上浏览器的版本:

相关链接