Linux Mint 21.1 Vera, Firefox 111.0.1 (64-разрядный), PyCharm 2022.3.3 (Community Edition)
Пытаюсь запустить тест, но бинарный файл не является исполняемым. Нигде не нашел вразумительного ответа. Драйвер стоит, Firefox установлен.
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import time
options = Options()
options.binary_location = r"/usr/bin/firefox"
driver = webdriver.Firefox(options=options)
time.sleep(5)
driver.quit()
Вывод:
Traceback (most recent call last):
File "/home/mymymy/python_projects/selenium-buro/main.py", line 8, in
driver = webdriver.Firefox(options=options)
File "/home/mymymy/python_projects/selenium-buro/lib/python3.10/site-packages/selenium/webdriver/firefox/webdriver.py", line 199, in __init__
super().__init__(command_executor=executor, options=options, keep_alive=True)
File "/home/mymymy/python_projects/selenium-buro/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
self.start_session(capabilities, browser_profile)
File "/home/mymymy/python_projects/selenium-buro/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/home/mymymy/python_projects/selenium-buro/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "/home/mymymy/python_projects/selenium-buro/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: binary is not a Firefox executable
Process finished with exit code 1