【问题标题】:selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status -1073740791selenium.common.exceptions.WebDriverException:消息:进程意外关闭,状态为 -1073740791
【发布时间】:2021-06-03 20:14:20
【问题描述】:

我在 selenium 中有一个正常工作的网络抓取工具,然后我突然开始收到以下错误: selenium.common.exceptions.WebDriverException:消息:进程意外关闭,状态为 -1073740791

示例代码:


opts = FirefoxOptions();
opts.add_argument("--headless");
opts.log.level = "trace";
opts.binary = 'C:\\Users\\PATH\\firefox.exe';
driver = Firefox(executable_path='C:\\Users\\PATH...\\geckodriver.exe', firefox_options=opts);

'''


我正在使用 firefox geckodriver 并尝试过无头运行而不是无头运行。

任何帮助将不胜感激!

【问题讨论】:

    标签: python selenium


    【解决方案1】:

    已解决:当 Firefox 无法打开新窗口时会出现此错误。我卸载并重新安装了 Firefox 并得到了解决的错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-03
      • 1970-01-01
      • 1970-01-01
      • 2022-08-22
      • 2017-08-31
      • 1970-01-01
      • 1970-01-01
      • 2017-11-30
      相关资源
      最近更新 更多