geckodriver
geckodriver copied to clipboard
Extend the list of default places to check for the Firefox executable
It seems like the geckodriver does not check all usual places for Firefox.
I tried to run the sample code as provided in this sample. However, I had to provide the path to the Firefox executable because it could not be found by itself. My working solution looks like this:
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
opts = Options()
opts.binary = r"C:\Users\MY_USER_NAME\AppData\Local\Mozilla Firefox\firefox.exe"
driver = webdriver.Firefox(firefox_options=opts)
So my suggestion is to add %APPDATA%\..\Local\Mozilla Firefox\firefox.exe
to the list of default places to check for Firefox. That seems at least to be the issue for me without any debugging steps and looking at it from outside. More details at the (wrongly) filed issue at selenium first and second.