

Press edit and then add the entry at the bottom of the list. In the bottom box "System Variables" highlight the "Path" variable like so In Windows 10, click the "windows" button and search "environment variables"Ĭlick on the "environment variables" box at the bottom right hand corner. Inside that folder you just copied will be the geckodriver.exe

If I installed Python in C:\Python\Python37 I would paste the file in there so gecko would be located in C:\Python\Python37\geckodriver-v0.24.0-win64 Most likely 64bit.ĭownload the webdriver by clicking on the linkĥ.Right click on the downloaded file and unzip the file.Ĭopy and paste the file to somewhere in your python directory. Scroll down to assets and then click and download the correct driver. This example selenium is already installedĪt the time of writing I chose the latest version which was simply the version listed at the top of the page. Self._start_from_profile_path()įile "C:\Users\user1\AppData\Local\Continuum\Anaconda3\lib\subpįileNotFoundError: The system cannot find the file specifiedįor Python 3 - Selenium plus webdriver for Firefox Įnter Pip install -U Selenium (The -U will upgrade it to the latest Selenium version.) packages\selenium-2.53.6-p圓.5.egg\selenium\webdriver\firefox\firefox_binary.py packages\selenium-2.53.6-p圓.5.egg\selenium\webdriver\firefox\extension_connect packages\selenium-2.53.6-p圓.5.egg\selenium\webdriver\firefox\webdriver.py", li from selenium import webdriverįile "C:\Users\user1\AppData\Local\Continuum\Anaconda3\lib\site Type "help", "copyright", "credits" or "license" for more information. Here is the full error traceback.Ĭopyright (c) 2009 Microsoft Corporation. I updated the PATH as shown in the comments. I have mostly used the Anaconda distribution of Python to work with excel so I do not know what is a "PATH" Make sure it’s in your PATH, e.g., place it in /usr/bin or /usr/local/bin. Firefox, for example, requires geckodriver, which needs to be installed before the below examples can be run. Selenium requires a driver to interface with the chosen browser. However, I do not know what to do given the below from I am attempting to work with Selenium in Python.
