Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromium: chromeDir path under Linux #362

Closed
milkeg opened this issue Apr 12, 2017 · 3 comments
Closed

Chromium: chromeDir path under Linux #362

milkeg opened this issue Apr 12, 2017 · 3 comments

Comments

@milkeg
Copy link
Contributor

milkeg commented Apr 12, 2017

Hello,

Since we upgraded to Canopy 1.2.2, we are facing a DriverServiceNotFoundException error.
It seems that now chromeDir is pointing by default to /usr/bin/chromedriver instead of /usr/lib/chromium-browser/ (in Canopy 1.0.1 at least).
It seems related to a previous issue faced by @knocte #276

Just to raise you the point as it might be a regression.

On our side, we fixed it using chromeDir <- "/usr/lib/chromium-browser/"

Error:

Unhandled Exception:
OpenQA.Selenium.DriverServiceNotFoundException: The file /usr/bin/chromedriver does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
  at OpenQA.Selenium.DriverService..ctor (System.String servicePath, System.Int32 port, System.String driverServiceExecutableName, System.Uri driverServiceDownloadUrl) [0x00059] in <2096f357ed27440a8e98c8a8dd645cdd>:0 
  at OpenQA.Selenium.Chrome.ChromeDriverService..ctor (System.String executablePath, System.String executableFileName, System.Int32 port) [0x00033] in <2096f357ed27440a8e98c8a8dd645cdd>:0 
  at OpenQA.Selenium.Chrome.ChromeDriverService.CreateDefaultService (System.String driverPath, System.String driverExecutableFileName) [0x00007] in <2096f357ed27440a8e98c8a8dd645cdd>:0 
  at OpenQA.Selenium.Chrome.ChromeDriverService.CreateDefaultService (System.String driverPath) [0x00006] in <2096f357ed27440a8e98c8a8dd645cdd>:0 
  at canopy.core.start (canopy.types+BrowserStartMode b) [0x00286] in <58ed6ba8d8107025a7450383a86bed58>:0 
  at <StartupCode$UITest>.$Program.main@ () [0x00132] in /home/michael/Development/web-ui-tests/UITest/Program.fs:58 
[ERROR] FATAL UNHANDLED EXCEPTION: OpenQA.Selenium.DriverServiceNotFoundException: The file /usr/bin/chromedriver does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
  at OpenQA.Selenium.DriverService..ctor (System.String servicePath, System.Int32 port, System.String driverServiceExecutableName, System.Uri driverServiceDownloadUrl) [0x00059] in <2096f357ed27440a8e98c8a8dd645cdd>:0 
  at OpenQA.Selenium.Chrome.ChromeDriverService..ctor (System.String executablePath, System.String executableFileName, System.Int32 port) [0x00033] in <2096f357ed27440a8e98c8a8dd645cdd>:0 
  at OpenQA.Selenium.Chrome.ChromeDriverService.CreateDefaultService (System.String driverPath, System.String driverExecutableFileName) [0x00007] in <2096f357ed27440a8e98c8a8dd645cdd>:0 
  at OpenQA.Selenium.Chrome.ChromeDriverService.CreateDefaultService (System.String driverPath) [0x00006] in <2096f357ed27440a8e98c8a8dd645cdd>:0 
  at canopy.core.start (canopy.types+BrowserStartMode b) [0x00286] in <58ed6ba8d8107025a7450383a86bed58>:0 
  at <StartupCode$UITest>.$Program.main@ () [0x00132] in /home/michael/Development/web-ui-tests/UITest/Program.fs:58 

Thank you,
Michael

@knocte
Copy link
Contributor

knocte commented Apr 12, 2017

we fixed it using chromeDir <- "/usr/lib/chromium-browser/"

That is only a workaround. The point of the fix for #276 was to be able to use ChromiumWithOptions() (instead of ChromeWithOptions), which would just work.

Something got broken recently then.

@milkeg milkeg changed the title chromeDir path under Linux Chronium: chromeDir path under Linux Apr 12, 2017
@milkeg milkeg changed the title Chronium: chromeDir path under Linux Chrome: chromeDir path under Linux Apr 12, 2017
@milkeg milkeg changed the title Chrome: chromeDir path under Linux Chromium: chromeDir path under Linux Apr 12, 2017
@lefthandedgoat
Copy link
Owner

Yep I found the regression. I will fix tonight.

@lefthandedgoat
Copy link
Owner

You can download these fixes in the latest nuget package. Sorry about that! https://www.nuget.org/packages/canopy/1.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants