I mainly used the Anaconda Python distribution to work with Excel, so I don't know what PATH is.
I updated PATH as shown in the comments. Here is a complete error tracing.
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C: \ Users \ user1> python
Python 3.5.2 | Anaconda 4.2.0 (32-bit) | (default, July 5, 2016 11:45:57) [MSC v.1 900 32 bit (Intel)] on win32
Enter โhelp,โ โcopyright,โ โcredits,โ or โlicenseโ for more information.
from selenium import webdriver driver = webdriver.Firefox()
Traceback (last call last):
File "", line 1, in
File "C: \ Users \ user1 \ AppData \ Local \ Continuum \ Anaconda3 \ lib \ site -packages \ selenium-2.53.6-py3.5.egg \ selenium \ webdriver \ firefox \ webdriver.py", li ne 80, in init self.binary, timeout)
File "C: \ Users \ user1 \ AppData \ Local \ Continuum \ Anaconda3 \ lib \ site -packages \ selenium-2.53.6-py3.5.egg \ selenium \ webdriver \ firefox \ extension_connect ion.py", line 52, in init self.binary.launch_browser (self.profile, timeout = timeout)
File "C: \ Users \ user1 \ AppData \ Local \ Continuum \ Anaconda3 \ lib \ site -packages \ selenium-2.53.6-py3.5.egg \ selenium \ webdriver \ firefox \ firefox_binary.py", line 67, in launch_browser self._start_from_profile_path (self.profile.path)
File "C: \ Users \ user1 \ AppData \ Local \ Continuum \ Anaconda3 \ lib \ site -packages \ selenium-2.53.6-py3.5.egg \ selenium \ webdriver \ firefox \ firefox_binary.py", line 90, in _start_from_profile_path env = self._firefox_env)
File "C: \ Users \ user1 \ AppData \ Local \ Continuum \ Anaconda3 \ lib \ subp rocess.py", line 947, in init restore_signals, start_new_session)
File "C: \ Users \ user1 \ AppData \ Local \ Continuum \ Anaconda3 \ lib \ subp rocess.py", line 1224, in _execute_child startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the specified file