Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided
问题 I am trying to get back into using python webdriver. I have here the code from selenium import webdriver driver = webdriver.Firefox(executable_path=r'C:\Users\Cody\Downloads\geckodriver.exe') driver.get('http://inventwithpython.com') This causes: C:\Users\Cody\Projects>python accounting.py Traceback (most recent call last): File "accounting.py", line 4, in <module> driver = webdriver.Firefox(executable_path=r'C:\Users\Cody\Downloads\geckodriver.exe') File "C:\Users\Cody\AppData\Local\Packages