我需要在不同版本的Internet Explorer浏览器上进行测试,但不是WATIN.CORE.IE,它会改变所用浏览器的版本。我希望你能理解我的问题。Watin - 我如何在不同版本的Internet Explorer上进行测试?
-1
A
回答
2
你将需要多个virtual machines每个安装了不同版本的ie,因为你不能安装即版本并排(有一些黑客,但你永远不会得到真正的代表)。
2
您可以查询注册表以获取IE版本。
要将完整版本号输出到NUnit控制台,请执行以下操作。
var ieKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Internet Explorer");
if (ieKey == null)
{
Console.WriteLine("IE key not found");
}
else
{
Console.WriteLine("Version:" + (string)ieKey.GetValue("Version"));
}
使用上述证实:Windows 7中,IE8和华廷2.0
由于是吉荣作为注册表呼叫逐字复制出来IE.cs
的相关问题
- 1. 如何使用旧版本的Internet Explorer进行调试?
- 2. 多个Internet Explorer版本浏览器测试(Internet Explorer 6-8)?
- 3. 仅在Internet Explorer版本10或更高版本上支持在64位Internet Explorer中测试Web应用程序
- 4. 如何测试Internet Explorer版本是否为版本7或版本8?
- 5. Internet Explorer测试
- 6. 如何在Windows 7上进行Internet Explorer 7测试和JavaScript调试?
- 7. 测试JSON Web服务在Internet Explorer上进行操作
- 8. 如何获取Nightwatch.js在Internet Explorer上运行测试
- 9. 使用Modernizr的检测Internet Explorer版本
- 10. 如何在Internet Explorer中测试Rails Juggernaut?
- 11. VML Internet Explorer版本
- 12. 使用VB6检测Internet Explorer版本
- 13. 要测试Internet Explorer的JavaScript
- 14. 使用WaitForElement进行aurelia测试,同时在Internet Explorer中运行Karma
- 15. 如何检测安装了哪个版本的Internet Explorer?
- 16. 为什么我的代码在localhost上的Internet Explorer版本8上不是在服务器上,而是在Internet Explorer版本10上工作
- 17. 检测远程计算机上的Internet Explorer版本
- 18. 相同版本的Internet Explorer 7如何安装不同的渲染结果
- 19. Internet Explorer版本说明:CO
- 20. 使用Internet Explorer进行调试
- 21. 如何在Play下对Internet Explorer运行Selenium测试?
- 22. 如何在Internet Explorer中运行selenium rc测试用例
- 23. 使用Selenium在不同文档模式下测试Internet Explorer
- 24. Internet Explorer 8不从我的本地开发版本保存cookie
- 25. 如何在Internet Explorer 8或更旧版本上查看我创建的网页?
- 26. 硒测试在Internet Explorer上运行速度非常慢
- 27. 在Internet Explorer 64位上运行QTP测试
- 28. 使用不同版本的宝石进行集成测试
- 29. 如何测试硒网格上的Internet Explorer?
- 30. 我可以用我的WatiN测试来进行压力测试吗?
好的,但也有办法模拟选择IE浏览器版本模式的动作?或者有什么方法可以知道哪些版本的浏览器是从WatiN运行的? – jonatanes