title: TypeError: WebDriver.__init__() got an unexpected keyword argument 'firefox_options' error using firefox_options as arguments in Selenium Python
body: <p>I'm trying to create a script which downloads a file from a website and for this I want to change the download filepath. When I try to do this with the Firefox options it gives me this error:</p>
  <pre><code>TypeError: WebDriver.__init__() got an unexpected keyword argument 'firefox_options'
  </code></pre>
  <p>Code:</p>
  <pre><code>from selenium import webdriver
  from selenium import webdriver
  from selenium.webdriver.common.by import By
  from selenium.webdriver.firefox.options import Options
  from selenium.webdriver.common.keys import Keys
  import time
  
  options = Options()
  
  options.add_argument(&quot;download.default_directory=C:\\Music&quot;)
  browser = webdriver.Firefox(firefox_options=options, executable_path=r'C:\\selenium\\geckodriver.exe')
  browser.get('https://duckduckgo.com/')
  </code></pre>