Начал изучать Python.
Осваиваю Selenium.
Не удается открыть браузер с помощью :
from selenium import webdriver
driver = webdriver.Firefox()
Выдаёт вот такую ошибку :
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
Traceback (most recent call last):
File “C:\Users\qwerty\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py”, line 74, in start
stdout=self.log_file, stderr=self.log_file)
File “C:\Users\qwerty\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py”, line 707, in init
restore_signals, start_new_session)
File “C:\Users\qwerty\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py”, line 992, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Не удается найти указанный файл
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “<pyshell#34>”, line 1, in
driver = webdriver.Firefox()
File “C:\Users\qwerty\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\firefox\webdriver.py”, line 142, in init
self.service.start()
File “C:\Users\qwerty\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py”, line 81, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.