Я пытаюсь запустить оперу, используя python библиотеки селена. Но ошибка получения возможностей.
Коды, которые я пробовал:
Код1:
driver = webdriver.Opera()
driver.get('https://www.google.com')
Код 2:
driver = webdriver.Opera(r'path to operadriver.exe')
driver.get('https://www.google.com')
Код 3:
options = Options()
options.binary_location = r'C:\Opera\launcher.exe'
driver = webdriver.Opera(options=options)
driver.get('https://www.google.com')
Выход:
Код 1:
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Opera binary
Код2:
selenium.common.exceptions.WebDriverException: Message: Desired Capabilities must be a dictionary
Код3:
[20904:3220:0120/034255.122:ERROR:os_crypt_win.cc(61)] Failed to decrypt: The parameter is incorrect. (0x57)
DevTools listening on ws://127.0.0.1:59016/devtools/browser/0bb7bc3c-4b9a-451a-a736-a02a63feba7a
[20904:3220:0120/034255.673:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.", source: chrome://startpage/ (0)
[20904:3220:0120/034255.674:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.", source: chrome://startpage/ (0)
[20904:3220:0120/034255.675:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.", source: chrome://startpage/ (0)
Только с кодом 3 запуска браузера Opera. Но URL не открывается.
Поскольку я могу запустить chrome с похожими кодами.