繁体   English   中英

(Python 3.8 Selenium Firefox Z3D945423F8E9404BTS64节点上的错误)。

[英]Python 3.8 Selenium Firefox error on Ubuntu 20.04 LTS (Linode)

我正在尝试使用 python3.8 和 firefox 运行 selenium。 尝试使用最新的两个 geckodriver 版本。 收到此错误。

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/insurance_monitor/env/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py", line 170, in __init__
    RemoteWebDriver.__init__(
  File "/root/insurance_monitor/env/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "/root/insurance_monitor/env/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/root/insurance_monitor/env/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/root/insurance_monitor/env/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1

似乎原因是......我试图在云上运行。 不得不设置它无头

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM