在Safari/Edge/IE硒中导入浏览器扩展 [英] Import browser extensions in Safari/Edge/IE selenium

查看:219
本文介绍了在Safari/Edge/IE硒中导入浏览器扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以仅使用Selenium来将扩展导入Safari/Edge/IE Webdriver? 这样Safari/Edge/IE可以在导入扩展并启用测试扩展的情况下启动吗?

Is it possible using Selenium only, to import an extension into the Safari/Edge/IE webdriver? So that Safari/Edge/IE boots with the extension imported and enabled for testing?

如果可能的话...我该如何在Python中做到这一点

And if possible... How do i do this in Python

推荐答案

我敢肯定,这些浏览器都不支持硒中的此功能.您唯一的选择是在运行测试之前设置带有扩展名的浏览器. Safari和IE可能永远不会对此提供支持,因为不推荐使用safari驱动程序,而IE不会获得更多更新,因为重点将完全转移到Edge.

I'm pretty sure none of those browsers have support for this in selenium. Your only option is to set up the browsers with extensions before running the tests. Safari and IE will probably never get support for this as the safari driver is deprecated and IE won't get any more updates as the focus will shift fully to Edge.

Microsoft Edge甚至根本不支持稳定版本中的扩展.

Microsoft Edge also does not even support extensions in the stable build yet at all.

一旦将功能推出到稳定版本中,Edge可能会获得驱动程序的支持,因为Edge驱动程序是由Microsoft自己创建的.

Edge might get support in the driver once the feature has been rolled out to the stable release, as the Edge driver is created by Microsoft themselves.

来源:

  • Safaridriver Wiki
  • Safaridriver internals Wiki

注意:SafariDriver已过时.所有代码已从主服务器中删除,但仍可以在safari分支中使用

NOTE: The SafariDriver is deprecated. All code has been removed from master, but is still available in the safari branch

  • IEdriver Wiki
  • IEdriver内部Wiki
  • Edge没有稳定的扩展名
    • IEdriver Wiki
    • IEdriver internals Wiki
    • Edge has no extensions in stable
    • 个性化并将新功能添加到带有扩展功能的Microsoft Edge中.从Windows 10 Insider Preview的内部版本14291开始,Microsoft Edge现在提供了一系列扩展.

      Personalize and add new features to Microsoft Edge with extensions. Starting with build 14291 for the Windows 10 Insider Preview, a selection of extensions is now available for Microsoft Edge.

      这篇关于在Safari/Edge/IE硒中导入浏览器扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆