Добрый день, пытаюсь снять логи из консоли браузера
в хроме все ок, а вот в мозиле и эдже возникли проблемы.
Что я делаю не так?
caps = DesiredCapabilities.FIREFOX
caps['loggingPrefs'] = {'performance': 'ALL', 'browser': 'ALL'}
wd = webdriver.Firefox(desired_capabilities=caps)
wd.get('http://ya.ru')
print(wd.get_log('browser'))
caps = DesiredCapabilities.EDGE
caps['loggingPrefs'] = {'performance': 'ALL', 'browser': 'ALL'}
wd = webdriver.Edge(capabilities=caps)
wd.get('http://ya.ru')
print(wd.get_log('browser'))
Traceback (most recent call last):
File "C:/Users/trune/PycharmProjects/vctests/asd.py", line 6, in <module>
wd = webdriver.Edge(capabilities=caps)
File "C:\Users\trune\PycharmProjects\vctests\venv\lib\site-packages\selenium\webdriver\edge\webdriver.py", line 66, in __init__
desired_capabilities=capabilities)
File "C:\Users\trune\PycharmProjects\vctests\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "C:\Users\trune\PycharmProjects\vctests\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\trune\PycharmProjects\vctests\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\trune\PycharmProjects\vctests\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 208, in check_response
raise exception_class(value)
selenium.common.exceptions.WebDriverException: Message: Unknown error