Playizm
Kilopat
- Katılım
- 26 Haziran 2019
- Mesajlar
- 787
- Çözümler
- 10
Merhaba arkadaşlar şöyle bir kod yazdım:
Fakat şöyle bir hata alıyorum:
Çözümünü bilen var mı acaba?
Python:
from selenium import webdriver.
from selenium.webdriver.common.keys import Keys.
driver = webdriver.Chrome(r'C:\Users\Playizm\Desktop\chromedriver.exe')
browser.get('http://google.com')
exit()
Fakat şöyle bir hata alıyorum:
Traceback (most recent call last):
File "/home/playizm/.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 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Playizm\\Desktop\\chromedriver.exe'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dene.py", line 5, in <module>
driver = webdriver.Chrome(r'C:\Users\Playizm\Desktop\chromedriver.exe')
File "/home/playizm/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
self.service.start()
File "/home/playizm/.local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'C:\Users\Playizm\Desktop\chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Çözümünü bilen var mı acaba?