0
0

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 3 years have passed since last update.

UnknownError: unknown error: cannot find Chrome binarの対処 #初学者 

Last updated at Posted at 2020-07-11

環境

cloud9でUbuntuを使用

エラー内容

動かすとchromedriverが見つから無いというエラーが出た

1.2) Failure/Error: Unable to infer file and line number from backtrace
               
 Selenium::WebDriver::Error::UnknownError:
unknown error: cannot find Chrome binar

対処

cloud9ではchromedriverが入って無いので公式から入れてパスをつなぐ 
https://chromedriver.chromium.org/downloads

$ chromedriver -v
ChromeDriver 83.0.4103.39
$ which chromedriver
/usr/local/bin/chromedriver

が同じエラー
(この間でいろいろ調べて試した。この記事とか
https://qiita.com/jnchito/items/f9c3be449fd164176efa

chromedriverのバージョンも確認したが確実にあってる
分からないのでもっと調べるとローカルに移動させてる人もいた

今回はとりあえず環境変えようと思い(というよりこの記事どおりしたいと思い)amazonllinuxに変える事にした  
https://qiita.com/jnchito/items/f03934e8db01aec7cdc8

すると無事実行するができた!!!

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?