WATIN模拟右键单击Firefox [英] WATIN simulating right button click in Firefox

查看:54
本文介绍了WATIN模拟右键单击Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下代码模拟右键单击

I use the following code to simulate right button click

NameValueCollection eventProperties =新的NameValueCollection();eventProperties.Add("button","2");box.FireEvent("onmousedown",eventProperties);

NameValueCollection eventProperties = new NameValueCollection(); eventProperties.Add("button", "2"); box.FireEvent("onmousedown", eventProperties);

它们在IE中运行良好,但在Firefox中不起作用,Firefox仍将单击视为左(0)按钮.

they work well in IE, but does not work in Firefox, Firefox still recognize the click as left (0) button button.

谢谢

推荐答案

请参阅我的答案为FireFox解决此问题

See my answer to solve this for FireFox here. This needs to be fixed in WatiN though.

耶罗恩

这篇关于WATIN模拟右键单击Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆