title: For Python, why does Selenium not read Geckodriver yet read Chromedriver?
body: <p>So basically, I added geckodriver.exe to the environment variables Path on Windows 10, yet trying</p>
  <pre><code>from selenium import webdriver
  driver=webdriver.Firefox()
  </code></pre>
  <p>still resulted in the error message that &quot;Geckodriver&quot; executables need to be installed on Path</p>
  <p>Now, I installed Chrome and the chromedriver.exe file off the web and ran chromedriver on Selenium just fine</p>
  <pre><code>from selenium import webdriver
  browser=webdriver.Chrome(r'c:\chromedriver\chromedriver.exe')
  </code></pre>
  <p>This works and Google Chrome is open, so now I try to add the path in Firefox and when the path suggestions are showing up, selenium doesn't even recognize the geckodriver.exe exists, and pathlib does recognize the Path('c:/geckodriver/geckodriver.exe').exists()==True.</p>
  <pre><code>browser=webdriver.Firefox(r'c:\geckodriver\geckodriver.exe')
  
  NotADirectoryError
  </code></pre>
  <p>So selenium is saying that the .exe file that clearly exists does not exist. How do I solve this problem?</p>