Selenium Error: The system cannot find the file specified

+4 James Kon · December 28, 2015
I am using Selenium on Python 3. I used the super simple code below:

from selenium import webdriver
driver = webdriver.Firefox()

However, I get a ton of errors. I am at a loss here. In short, the error is:

FileNotFoundError: [WinError 2] The system cannot find the file specified

I recently switched all my documents to my external hard drive. It used to be on flash drive. After seeing this error I'm convinced something is wrong with my file placements, so I uninstalled Python, and reinstalled. Also I reinstalled PyCharm. However I am still getting this error.

To see the full errors that it gives me, here is the paste:

Post a Reply


Oldest  Newest  Rating
0 sfolje 0 · March 24, 2016
my wild guess is that you must use httpS://

Try more different websites e.g., ...

just figured out that original post is from december 2015 (3 months ago) ... -_-
0 Na z · March 22, 2016
my wild guess it that you do not have firefox installed yet
0 Ernesto Alejandro Marmolejo Tellez · January 25, 2016
i have the same problem, i'm triying to run a test proyect with c# and i can't instanciate the class for firefoxdriver because it says "The system cannot find the file specified" pls help
0 James Kon · January 6, 2016
I am still having this problem if anyone can help.
  • 1



This section is all about snakes! Just kidding.

Bucky Roberts Administrator