I just started using selenium
with Python and I keep getting the following error code:
TypeError: WebDriver.__init__() got an unexpected keyword argument 'executable_path'
Here's the code for the context:
from selenium.webdriver import Firefox
from selenium.webdriver.common.keys import Keys
url = 'https://example'
driver_path = r"D:\path\to\geckodriver.exe"
browser = Firefox(executable_path=driver_path)
browser.get(url)
Thanks in advance!
I checked the path, the version of the selenium
package and made sure that I have the right geckodriver.exe
but still get the error.