Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer Selenium InternetExplorerDriver,禁用闪存_Internet Explorer_Selenium - Fatal编程技术网

Internet explorer Selenium InternetExplorerDriver,禁用闪存

Internet explorer Selenium InternetExplorerDriver,禁用闪存,internet-explorer,selenium,Internet Explorer,Selenium,有没有办法在selenium InternetExplorerDriver中禁用flash 在windows internet选项中禁用此选项似乎不起作用。我正在寻找传递给InternetExplorerDriver构造函数的功能,但似乎没有。目前在InternetExplorerDriver中禁用flash的资源有限。一种方法是在Selenium测试中使用BrowserStack,并将noFlash功能传递到测试中 caps.setCapability("browserstack.ie.noF

有没有办法在selenium InternetExplorerDriver中禁用flash


在windows internet选项中禁用此选项似乎不起作用。我正在寻找传递给InternetExplorerDriver构造函数的功能,但似乎没有。

目前在InternetExplorerDriver中禁用flash的资源有限。一种方法是在Selenium测试中使用BrowserStack,并将noFlash功能传递到测试中

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


BrowserStack很容易设置并集成到测试中。如果您必须禁用flash来测试web自动化,我建议您在Internet Explorer中使用它。我们公司正是出于这个原因使用它的,而且效果很好。

这是一个很好的解决方案,但我们没有browserstack的预算。