0

Here is my code:

from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.google.com/")

Then in windows PowerShell I get:

PS C:\Users\userName\PycharmProjects\untitled> python .\s_Chrome.py
Traceback (most recent call last):
File "C:\Users\userName\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium-2.49.2-py3.5.egg\selenium\webdriver\common\service.py", line 62,
in start
stdout=self.log_file, stderr=self.log_file)
File "C:\Users\userName\AppData\Local\Programs\Python\Python35-32\lib\subproce
ss.py", line 950, in __init__
restore_signals, start_new_session)
File "C:\Users\userName\AppData\Local\Programs\Python\Python35-32\lib\subproce
ss.py", line 1220, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

Do I need to add something to PATH?

aneroid
  • 12,983
  • 3
  • 36
  • 66
P. Elf.
  • 3
  • 1
  • 2
  • Possible duplicate of [Running webdriver chrome with Selenium](http://stackoverflow.com/questions/8255929/running-webdriver-chrome-with-selenium) – aneroid Feb 27 '16 at 10:44

1 Answers1

0

You need to have the chromedriver executable in your PATH. Go here to get more information and to download chromedriver for various platforms.

MattDMo
  • 100,794
  • 21
  • 241
  • 231
  • Thank you @MattDMo! I realized this over the weekend on my personal linux machine over the weekend. Could have saved myself time if I had checked my stackoverflow questions more often. – P. Elf. Feb 01 '16 at 14:25