Я только что построил себе новый компьютер.Собирался что-то соскрести, но я получаю ошибку "Unable to find a matching set of capabilities
."Не знаете, почему эта ошибка вызывается?
Версии
Windows 10 Home 10.0.18362 Build 18362 (x64)
Firefox 69.0.1 (64-bit) # also tried with the last version of firefox
Python 3.7.4 (64 bit (AMD64))
Selenium 3.141.0
Geckodriver 0.25.0 (64-bit, though I've tried with the 32-bit one and same error)
Ошибка трассировки стека
File "C:\Users\Anthony\Desktop\ZzzGiants\Scrape\name_dictionary.py", line 30, in create_webdriver_instance
return webdriver.Firefox()
Скрипт
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver import Firefox
from selenium.webdriver.firefox.options import Options
def create_webdriver_instance():
#options = Options()
#options.add_argument('--headless')
#return webdriver.Firefox(options=options)
return webdriver.Firefox()
""" commented out the options because i was getting this error, but error still persists """
ff = create_webdriver_instance()
...
Остальная часть стекаслед
File "C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 174, in __init__
keep_alive=True)
File "C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities