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

using firefox in canopy #299

Closed
singh83 opened this issue Nov 3, 2016 · 17 comments
Closed

using firefox in canopy #299

singh83 opened this issue Nov 3, 2016 · 17 comments

Comments

@singh83
Copy link

singh83 commented Nov 3, 2016

i have installed Firefox webdriver but still firefox not working, like chromeDir , is there any special name for FireFox in canopy.configuration

@lefthandedgoat
Copy link
Owner

Read this: https://github.com/lefthandedgoat/canopy

This will change soon once I get selenium 3.0 brought in and tested out.

@singh83
Copy link
Author

singh83 commented Nov 4, 2016

installed latest canopy and selenium and Firefox version 45 then downloaded sample application for testing canopy and then firefox open correctly
For my project if i used start chrome then chrome open fine but when i use start firefox i got below error
OpenQA.Selenium.WebDriverException was unhandled
Message: An unhandled exception of type 'OpenQA.Selenium.WebDriverException' occurred in WebDriver.dll
Additional information: Unable to determine the current version of FireFox using the registry, please make sure you have installed FireFox correctly

@lefthandedgoat
Copy link
Owner

this sample application? https://github.com/lefthandedgoat/canopyStarterKit

@singh83
Copy link
Author

singh83 commented Nov 4, 2016

not that one but this one https://github.com/oinant/CanopyTryout.git

@lefthandedgoat
Copy link
Owner

I get the same error now. It looks like the ESR version uses different registry keys and its causing selenium to fail.

Selenium 3 is out now and it switches to a driver based model like chrome and IE. I will being working on getting canopy updated to it. I hope that it takes just a few days.

Sorry for the problems.

@singh83
Copy link
Author

singh83 commented Nov 4, 2016

Chris,
Thanks for your quick response.
But how firefox working fine for sample application i have downloaded ?

Thanks

On Nov 4, 2016, at 4:45 PM, Chris Holt [email protected] wrote:

I get the same error now. It looks like the ESR version uses different registry keys and its causing selenium to fail.

Selenium 3 is out now and it switches to a driver based model like chrome and IE. I will being working on getting canopy updated to it. I hope that it takes just a few days.

Sorry for the problems.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@lefthandedgoat
Copy link
Owner

You want to know how to get it to work for the sample app?

@singh83
Copy link
Author

singh83 commented Nov 4, 2016

For sample app it is working fine already , they are using same selenium and canopy version,
And in my project i am using same way but its not working for my project.
Is there any work around we can use before you release latest canopy version.

Thanks

On Nov 4, 2016, at 5:00 PM, Chris Holt [email protected] wrote:

You want to know how to get it to work for the sample app?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@lefthandedgoat
Copy link
Owner

lefthandedgoat commented Nov 4, 2016

This worked for me:

start (FirefoxWithPath @"C:\Program Files (x86)\Mozilla Firefox\firefox.exe")

Note that you may have to remove the (x86) part

@lefthandedgoat
Copy link
Owner

Can you tell me what error message you are getting in your project?

@singh83
Copy link
Author

singh83 commented Nov 4, 2016

i already send you error message and you replied that you are also getting same errro, but i got your work around option and i will try that and will update you if have any issue,
I never got such prompt reply from any other blog. I appreciate your feedback.

@lefthandedgoat
Copy link
Owner

You are welcome. I am at home sick so it is easy =)

With Firefox ESR and the sample app your linked to, I was getting the same error as you. Using start (FirefixWithPath "c:\....") that I showed above did make it work for me though, and I think it will for you.

@singh83
Copy link
Author

singh83 commented Nov 4, 2016

Hope you get well soon.

Sent from my iPhone

On Nov 4, 2016, at 5:15 PM, Chris Holt [email protected] wrote:

You are welcome. I am at home sick so it is easy =)

With Firefox ESR and the sample app your linked to, I was getting the same error as you. Using start (FirefixWithPath "c:....") that I showed above did make it work for me though, and I think it will for you.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@lefthandedgoat
Copy link
Owner

updating to selenium 3 was easier than I thought. You can read the instructions on what you have to do in issue 300 here : #300

@singh83
Copy link
Author

singh83 commented Nov 8, 2016

everything work fine if i copy geckodriver.exe into bin\debug folder, otherwise it through following exception, Where should i copy that file so that when i compile project it automatically moved to bin\debug folder just like CanopyStarterKit
OpenQA.Selenium.DriverServiceNotFoundException was unhandled
Message: An unhandled exception of type 'OpenQA.Selenium.DriverServiceNotFoundException' occurred in WebDriver.dll
Additional information: The geckodriver.exe file does not exist in the current directory or in a directory on the PATH environment variable. The driver can be downloaded at https://github.com/mozilla/geckodriver/releases.

@lefthandedgoat
Copy link
Owner

This commit shows how to do it. You need to drop it in a folder, then add it to the project and set it to copy on build.

lefthandedgoat/canopyStarterKit@9705843

@singh83
Copy link
Author

singh83 commented Nov 10, 2016

All done well. thanks for all your help. I am closing this issue

@singh83 singh83 closed this as completed Nov 10, 2016
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