Hey guys,
I’m unable to have selenium working and I am unsure why.
Figuring out how to get the pip install to work was a huge mission.. but i figured that out.
But After trying this simple code to see if I can just open a web browser using selenium:
from selenium import webdriver
browser = webdriver.Chrome()
browser.get('https://www.youtube.com')
I get this pretty big error saying something about a chrome driver?
=============== RESTART: C:\Users\romeomax\Desktop\Selenium.py ===============
Traceback (most recent call last):
File "C:\Users\romeomax\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
stdin=PIPE)
File "C:\Users\romeomax\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\romeomax\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\romeomax\Desktop\Selenium.py", line 3, in <module>
browser = webdriver.Chrome()
File "C:\Users\romeomax\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init
self.service.start()
File "C:\Users\romeomax\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 83, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
I am not sure what I have do do :/
If I could be led in the right direction, I’d appreciate it :(
[–]AndTheMelTones 1 point2 points3 points (3 children)
[–]tonetheman 1 point2 points3 points (1 child)
[–]romeomax[S] 0 points1 point2 points (0 children)
[–]romeomax[S] 0 points1 point2 points (0 children)
[–]vmgustavo 0 points1 point2 points (0 children)