Selenium gives "unknown error: cannot find Chrome binary" when running chrome driver on Ubuntu -


i trying run selenium [java] tests using chrome driver on latest ubuntu.[16.04]

i getting following error/exception. experiment, replaced chromedriver binary native "helloworldapp"; found selenium executing binary.

i believe print "starting chromedriver 2.27.440175 (9bc1d90b8bfa4dd181fbbf769a5eb5e575574320) on port 15306" coming chrome binary. why selenium complaining not able binary?

everything works fine on windows.

please advice.

     [java] starting chromedriver 2.27.440175 (9bc1d90b8bfa4dd181fbbf769a5eb5e575574320) on port 15306      [java] local connections allowed.      [java] exception in thread "main" org.openqa.selenium.webdriverexception: unknown error: cannot find chrome binary      [java]   (driver info: chromedriver=2.27.440175 (9bc1d90b8bfa4dd181fbbf769a5eb5e575574320),platform=linux 4.8.0-46-generic x86_64) (warning: server did not provide stacktrace information)      [java] command duration or timeout: 328 milliseconds      [java] build info: version: 'unknown', revision: 'unknown', time: 'unknown'      [java] system info: host: 'geo-virtualbox', ip: '127.0.1.1', os.name: 'linux', os.arch: 'amd64', os.version: '4.8.0-46-generic', java.version: '9-internal'      [java] driver info: org.openqa.selenium.chrome.chromedriver      [java]     @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(java.base@9-internal/native method)      [java]     @ sun.reflect.nativeconstructoraccessorimpl.newinstance(java.base@9-internal/nativeconstructoraccessorimpl.java:62)      [java]     @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(java.base@9-internal/delegatingconstructoraccessorimpl.java:45)      [java]     @ java.lang.reflect.constructor.newinstance(java.base@9-internal/constructor.java:453)      [java]     @ org.openqa.selenium.remote.errorhandler.createthrowable(errorhandler.java:206)      [java]     @ org.openqa.selenium.remote.errorhandler.throwifresponsefailed(errorhandler.java:158)      [java]     @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:678)      [java]     @ org.openqa.selenium.remote.remotewebdriver.startsession(remotewebdriver.java:249)      [java]     @ org.openqa.selenium.remote.remotewebdriver.<init>(remotewebdriver.java:131)      [java]     @ org.openqa.selenium.remote.remotewebdriver.<init>(remotewebdriver.java:144)      [java]     @ org.openqa.selenium.chrome.chromedriver.<init>(chromedriver.java:170)      [java]     @ org.openqa.selenium.chrome.chromedriver.<init>(chromedriver.java:138) 

i found problem. on linux system, google chrome browser not installed.

i under impression chromedriver binary has got browser implementation in it. realized that's wrong , chromedriver binary selenium wrapper calls google chrome.

i must exception message "selenium.webdriverexception: unknown error: cannot find chrome binary" confusing. if telling "chrome browser not installed" or similar have been easier.

thanks george


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -