Selenium.common.Exceptions.TimeoutException: Сообщение: * *Соединение отклонено (ошибка операционной системы 111).
Сценарий Python отлично работает на моем локальном компьютере (macOS).
Версии
- selenium 4.18.1
- firefox 93.0
- geckodriver 0.31.0
Код: Выделить всё
options = webdriver.FirefoxOptions()
options.add_argument('--headless') # headless setting
service = Service(log_output='geckodriver.log')
driver = webdriver.Firefox(options=options, service=service)
Код: Выделить всё
1714835716700 geckodriver INFO Listening on 127.0.0.1:46439
1714835716713 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "--remote-debugging-port" "42889" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "/tmp/rust_mozprofileizqbCI"
*** You are running in headless mode.
[GFX1-]: glxtest: libGL.so.1 missing
[GFX1-]: glxtest: libEGL missing
1714835717676 Marionette INFO Marionette enabled
Подробнее здесь: https://stackoverflow.com/questions/784 ... azon-linux