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

Make it possible to choose Geckodriver for Firefox #2600

Closed
soulgalore opened this issue Aug 11, 2016 · 4 comments
Closed

Make it possible to choose Geckodriver for Firefox #2600

soulgalore opened this issue Aug 11, 2016 · 4 comments

Comments

@soulgalore
Copy link
Contributor

Meta -

OS: OS X
Selenium Version: v3.0.0-beta-2
Browser: Firefox 48
Javascript/NodeJS version

In the current version the Geckodriver is found searching the PATH. I would love to see the same implementation as for Chrome and Chromedriver where you can specify the Chromedriver using the ServiceBuilder. Or a simpler solution for now where you can specify the path to Geckodriver using a property.

That would make it easier for us to automatically choose which Geckodriver to use, so the user doesn't need to be involved (in an embedded app).

@gauntface
Copy link

+1 with this feature.

On Node I managed to get around this by manipulating the path on process.env.PATH += ':' + pathToGeckoDriver and it seems to work on OS X and linux, but it feels pretty unstable and hacky.

@naveenkumar1
Copy link

But on Windows sadly it is not working even after including geckodriver path in Environment variables and the FF48 is not at all getting opened.

File "appscraping.py", line 37, in appopen
driver = webdriver.Firefox(capabilities=caps)
File "C:\Python27\lib\site-packages\selenium-3.0.0.b2-py2.7.egg\selenium\webdriver\firefox\webdriver.py", line 65, in init
self.service.start()
File "C:\Python27\lib\site-packages\selenium-3.0.0.b2-py2.7.egg\selenium\webdriver\common\service.py", line 71, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
capture
capture

@tobli
Copy link
Contributor

tobli commented Oct 11, 2016

Is there a way of using the Firefox ServiceBuilder when creating a driver via a Builder? For Chrome I use setDefaultService, but there's no equivalent for Firefox.

@kwa
Copy link

kwa commented Jun 1, 2017

There is a somewhat detailed description of the underlying problem and grunt based solution here:
#2577 (comment)

@lock lock bot locked and limited conversation to collaborators Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants