Selenium InternetExplorerDriver,禁用flash [英] Selenium InternetExplorerDriver, disable flash

查看:275
本文介绍了Selenium InternetExplorerDriver,禁用flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在selenium InternetExplorerDriver中禁用闪存?

Is there a way to disable flash in the selenium InternetExplorerDriver?

在Windows互联网选项中禁用此功能似乎不起作用。我正在寻找一个Capability传递给InternetExplorerDriver构造函数,但似乎没有。

Disabling this in the windows internet options doesnt seem to work. I am looking for a Capability to pass to the InternetExplorerDriver constructor, but there doesn't seem to be one.

推荐答案

目前有用于在InternetExplorerDriver中禁用闪存的资源有限。一种方法是使用BrowserStack和Selenium测试,并将noFlash功能传递给您的测试。

Currently there are limited resources for disabling flash in InternetExplorerDriver. One method is to use BrowserStack along with your Selenium tests, and pass the noFlash capability into your tests.

caps.setCapability("browserstack.ie.noFlash", "true");

https://www.browserstack.com/automate/java#enable-disable-flash
https://www.browserstack.com/automate

BrowserStack很容易设置并集成到你的试验。如果必须禁用flash来测试Web自动化,我建议将它用于Internet Explorer。我们公司特别是出于这个原因而使用它,效果很好。

BrowserStack is pretty easy to setup and integrate into your tests. I'd suggest using it for Internet Explorer if you must disable flash to test your web automation. Our company uses it for that reason specifically and it works out well.

这篇关于Selenium InternetExplorerDriver,禁用flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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