如何强制兼容性视图 [英] How to force compatibility view
问题描述
我已经安装了IE 11,但是我需要在IE 8、9和更高版本中运行一些测试. 10也一样.运行测试时如何强制兼容模式. 仅供参考,我确实尝试过F12,并将模式设置为8.它可以手动工作,但不能通过硒工作. 谢谢!
I have IE 11 installed, but I need to run a few tests in IE 8, 9, & 10 as well. How can I force the compatibility mode when running a test. FYI, I did try F12, and set the mode to 8. It works manually, but not through selenium. Thanks!
推荐答案
我最近遇到了完全相同的问题.不幸的是,除非您更改页面源,否则无法进行.参见此.但是,我可以告诉您我做了什么.我当然使用了VMS.幸运的是,Microsoft还提供了带有不同版本IE的VMS试用版.请访问此.准备好虚拟机之后,我安装了 NUNit控制台.然后,我简单地复制并加载了测试dll
并开始运行.
I ran into exact same issue recently. Unfortunately, there is no way unless you change page source. See this. However, I can tell you what I have done. I used VMS of course. Luckily, microsoft also provides trial versions of VMS with different versions of IE. visit this. After getting the VMs ready I installed NUNit Console. I then simply copied and loaded the test dll
on that and just run.
这篇关于如何强制兼容性视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!