![](/img/trans.png)
[英]How to get cookies on internet explorer using Selenium webdriver - C#
[英]How can I emulate internet explorer for multiple versions with c# selenium?
我想用c#硒模拟多个版本的Internet Explorer,甚至可能吗? 我怎样才能做到这一点? 我做了一些测试用例,我想在IE 8,9,10,11上运行它们。 有任何想法吗?
您可以通过几种方法来执行此操作,具体取决于您如何设置测试。
我认为最简单的方法是:
public void StartUpIE(string version){
string path = @"..\..\..\Drivers\IE\32\" + version;
//Rest of code to create an instance of IE as you would
}
然后在您的测试中:
[Testmethod]
public void testIE (){
StartUpIE("11");
//Do some testing
StartUpIE("11.1");
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.