I'm trying to install and set up selenium to practice web automation. I've installed all the proper packages and written some simple code, but I run into this error. The needed files are in the proper install path, but no matter what I still get the same exception error.
Traceback (most recent call last):
File "/home/fallen/.local/lib/python3.8/site-
packages/selenium/webdriver/common/service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory:
'C:\\webdrivers\\Chromedriver.exe'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/fallen/test.py", line 5, in <module>
driver = webdriver.Chrome(executable_path="C:\webdrivers\Chromedriver.exe")
File "/home/fallen/.local/lib/python3.8/site-
packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
self.service.start()
File "/home/fallen/.local/lib/python3.8/site-
packages/selenium/webdriver/common/service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'C:\webdrivers\Chromedriver.exe'
executable needs to be in PATH. Please see
https://sites.google.com/a/chromium.org/chromedriver/home