Headless_ie_driver启动Internet Explorer时发生意外错误。IELaunchURL()返回HRESULT80070012(“没有其他文件。”)

Headless_ie_driver启动Internet Explorer时发生意外错误。IELaunchURL()返回HRESULT80070012(“没有其他文件。”),第1张

Headless_ie_driver启动Internet Explorer时发生意外错误。IELaunchURL()返回HRESULT80070012(“没有其他文件。”)

您所看到的错误说明了一切:

selenium.common.exceptions.SessionNotCreatedException: Message: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:65393/'

如果您访问

Release Page
headless-selenium-for-win
ReleaseNotes
headless-selenium-for-winv1.4

它明确提到了以下情况:

  • 支持Firefox和Chrome
  • 无头桌面不再启动Windows资源管理器。
  • 创建无头桌面后,desktop_utils.exe学会了不运行explorer.exe。

因此,无法使用 headless_ie_selenium.exe* 初始化 Internet Explorer*


更新:

按您的评论

Are there any alternatives to open IE and run it in background viaselenium with mouse/keyboard inputs
Answer

Github线程中的@JimEvans

Headless IE with selenium not working on Windowsserver
明确提到

The IE driver does not support execution without an active, logged-indesktop session running. You'll need to take this up with the author of thesolution you're using to achieve "headless" (scare quotes intentional)execution of IE.

他还补充说:

Mouse and keyboard simulation won't work without an active session. It'sa browser limitation, not a driver limitation.



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5462836.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-12
下一篇 2022-12-12

发表评论

登录后才能评论

评论列表(0条)

保存