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

GeckoDriverDownloader get_download_path() error #8

Open
AndreVallestero opened this issue Apr 2, 2020 · 1 comment
Open

GeckoDriverDownloader get_download_path() error #8

AndreVallestero opened this issue Apr 2, 2020 · 1 comment

Comments

@AndreVallestero
Copy link

gdd.get_download_path()
File "C:\Program Files\Python37\lib\site-packages\webdriverdownloader\webdriverdownloader.py", line 264, in get_download_path
return os.path.join(self.download_root, "gecko", ver)
UnboundLocalError: local variable 'ver' referenced before assignment

@Unit111
Copy link

Unit111 commented Apr 8, 2020

Not sure about this error but if you are trying to get the location of the driver to pass to the Firefox constructor I use a different approach which works:
driver_path = GeckoDriverDownloader().download_and_install() print(driver_path[0]) print(GeckoDriverDownloader().get_download_path())
I just pass driver_path.
get_download_path() works for me (Windows 10, Python 3.8) but prints something I co not need:
C:\Users<my_username>\webdriver\gecko\v0.26.0

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