简体   繁体   English

如何在IE Webdriver中禁用Silverlight?

[英]How to disable silverlight in IE webdriver?

Here is what I got: an upload button, which works through silverlight if it is installed, or through html5 if there is no silverlight. 这是我得到的:一个上传按钮,如果已安装,则可以通过silverlight进行操作;如果没有Silverlight,则可以通过html5进行操作。 So, I have 2 browsers to test: Chrome and IE. 因此,我有2种浏览器要测试:Chrome和IE。 I did common uploading by sending keys to input element and it works good in chrome, but when it comes to IE - it is trying to use silverlight. 我通过向输入元素发送键来完成常见的上传,它在chrome中效果很好,但是对于IE来说,它正在尝试使用silverlight。 My question is how to disable silverlight or maybe there are some workarounds? 我的问题是如何禁用Silverlight,或者也许有一些解决方法? I found out that it is an add-on, so if somebody knows how to disable add-ons or launch iedriver with switches, please, let me know. 我发现这是一个附件,所以如果有人知道如何禁用附件或使用开关启动iedriver,请告诉我。

I looked through many documents about webdriver and it seem to be no way to disable add-ons or add switches for now. 我浏览了许多有关webdriver的文档,现在似乎无法禁用附加组件或添加开关。 I hope this will save somebody's else time. 我希望这可以节省别人的时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM