栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

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

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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.



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/470993.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号