Selenium gives “unknown error: cannot find Chrome binary” when running chrome driver on Ubuntu

前端 未结 4 679
不思量自难忘°
不思量自难忘° 2020-12-29 10:44

I am trying to run selenium [java] tests using chrome driver on Latest ubuntu.[16.04]

I am getting the following error/exception. As an experiment, I replaced Chrome

4条回答
  •  感动是毒
    2020-12-29 11:16

    I found the problem. On my linux system, Google Chrome Browser was not installed.

    I was under the impression that ChromeDriver binary has got a browser implementation in it. Now I realized that's wrong , ChromeDriver binary is a selenium wrapper that calls Google Chrome.

    I must say that the exception message "selenium.WebDriverException: unknown error: cannot find Chrome binary" is confusing. If it was telling that "Chrome Browser is not installed" or something similar it would have been much easier.

    Thanks George

提交回复
热议问题