简体   繁体   English

Internet Explorer事件不起作用

[英]Internet Explorer events not working

I am trying to run tests using WatiN with Internet Explorer 9, and my environment won't activate events like keyup , onkeydown , ect. 我正在尝试使用带有Internet Explorer 9的WatiN进行测试,并且我的环境无法激活keyuponkeydown等事件。 This keeps causing tests to fail. 这一直导致测试失败。 When on other machines they succeed. 当在其他计算机上时,它们会成功。

How do I solve this issue? 我该如何解决这个问题?

If Internet Explorer is not set as your default browser / start browser, this can prevent the events being captured correctly. 如果未将Internet Explorer设置为默认浏览器/启动浏览器,则可能会导致无法正确捕获事件。

Have you checked the document engine, etc. being used to render in Internet Explorer? 您是否检查了Internet Explorer中用于渲染的文档引擎等? (press F12 ) (按F12

PS: See Stack Overflow question Change default browser in Visual Studio 2010 RC for some browser switching extensions for Visual Studio PS:请参阅堆栈溢出问题更改Visual Studio 2010 RC中的默认浏览器,以获取Visual Studio的某些浏览器切换扩展

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

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