lefthandedgoat / canopy

f# web automation and testing library, built on top of Selenium (friendly to c# also)
http://lefthandedgoat.github.io/canopy/
MIT License
506 stars 115 forks source link

Set correct path for Firefox on linux #456

Closed milosdanilov closed 5 years ago

milosdanilov commented 5 years ago

When running canopy on linux (Ubuntu 18.04) i get the following error message:

1541168288570 mozrunner::runner INFO Running command: "/usr/lib/firefox-2.0" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.5HkpmFMeb2U6"

Unhandled Exception: System.InvalidOperationException: Failed to start browser /usr/lib/firefox-2.0: no such file or directory (SessionNotCreated)

Don't know what firefox-2.0 is actually, but /usr/lib/firefox/firefox is the correct path :)

lefthandedgoat commented 5 years ago

In the meantime, you can do

configuration.firefoxDir <- "your\desired\path"

before starting the browser and it should work.

milosdanilov commented 5 years ago

Ok, thanks 😊

On Fri, 2 Nov 2018, 15:52 Chris Holt <notifications@github.com wrote:

In the meantime, you can do

configuration.firefoxDir <- "your\desired\path"

before starting the browser and it should work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lefthandedgoat/canopy/pull/456#issuecomment-435405838, or mute the thread https://github.com/notifications/unsubscribe-auth/AMLsQGLs_976I7BcqqOxSC5DDQlmeb1qks5urFxEgaJpZM4YLxXe .