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

Is it possible to define where to find browser exe's? #141

Closed
jadiaz opened this issue Mar 31, 2014 · 6 comments
Closed

Is it possible to define where to find browser exe's? #141

jadiaz opened this issue Mar 31, 2014 · 6 comments

Comments

@jadiaz
Copy link

jadiaz commented Mar 31, 2014

I am using Firefox Aurora as default browser and I am receiving the following error

Additional information: Cannot find Firefox binary in PATH or default install locations. Make sure Firefox is installed. OS appears to be: OpenQA.Selenium.Platform

My guess is Selenium is looking for the regular firefox browser. Is it possible to define where to find firefox?

@lefthandedgoat
Copy link
Owner

This worked for me.

open canopy
open OpenQA.Selenium.Firefox

let aurora = new FirefoxDriver(FirefoxBinary("""C:\Program Files (x86)\Aurora\firefox.exe"""), FirefoxProfile())
browser <- aurora
browsers <- browsers @ [browser]
url "http://www.google.com"

If it works for you too, I will add better support for the constructor of Firefox that takes the firefox binary so you it will read something more like:

start Firefox(FirefoxBinary("""C:\Program Files (x86)\Aurora\firefox.exe"""), FirefoxProfile())

or maybe

start Firefox("""C:\Program Files (x86)\Aurora\firefox.exe""")

and you wont have to do the two lines setting browser and browsers

@jadiaz
Copy link
Author

jadiaz commented Mar 31, 2014

Works great but
reporter <- new LiveHtmlReporter() :> IReporter
is erroring out.

Additional information: Cannot find Firefox binary in PATH or default install locations. Make sure Firefox is installed. OS appears to be: OpenQA.Selenium.Platform

@lefthandedgoat
Copy link
Owner

It will suffer the same problem and isn't as easily worked around. I will get a new build out tonight with fixes for this.

In the short term you could try chrome (requires chromedriver.exe to be downloaded)

start chrome
reporter <- new LiveHtmlReporter(Chrome, configuration.chromeDir) :> IReporter 

or use what you have now with FF Aurora and dont use LiveHtmlReporter

@lefthandedgoat
Copy link
Owner

Now available in canopy 0.9.8
https://github.com/lefthandedgoat/canopy/wiki/Change-Log

start aurora
reporter <- new LiveHtmlReporter(aurora) :> IReporter 

If your Aurora is not installed to "C:\Program Files (x86)\Aurora\firefox.exe"

Then you can use this code

let aurora = FirefoxWithPath(@"C:\Your\Path\firefox.exe")
start aurora
reporter <- new LiveHtmlReporter(aurora) :> IReporter 

@jadiaz
Copy link
Author

jadiaz commented Apr 1, 2014

Wow. Fast. Thanks!
On Mar 31, 2014 7:46 PM, "lefthandedgoat" notifications@github.com wrote:

Now available in canopy 0.9.8
https://github.com/lefthandedgoat/canopy/wiki/Change-Log

start aurora
reporter <- new LiveHtmlReporter(aurora) :> IReporter

If your Aurora is not installed to "C:\Program Files
(x86)\Aurora\firefox.exe"

Then you can use this code

let aurora = FirefoxWithPath(@"C:\Your\Path\firefox.exe")
start aurora
reporter <- new LiveHtmlReporter(aurora) :> IReporter

Reply to this email directly or view it on GitHubhttps://github.com//issues/141#issuecomment-39165751
.

@lefthandedgoat
Copy link
Owner

No problem! Enjoy =)

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

2 participants