qtp录制鼠标右键单击事件要通过模拟键盘操作来实现step 1,修改replaytype为2,一般情况默认设置是1的。(1 – 使用浏览器事件运行鼠标操作。 2 – 使用鼠标运行鼠标操作)setting.webpackage(”replaytype”) = 2step 2,鼠标右键单击事件(附:click的事件有三种 micleftbtn 0 鼠标左键。 micrightbtn 1 鼠标右键。 micmiddlebtn 2 鼠标中键)browser(”支付宝 – 网上支付 安全快速!”).page(”支付宝 – 网上支付 安全快速!”).link(”返回我要付款”).click , , micrightbtnstep 3,点击右键弹出的菜单(采用键盘事件来模拟)set wshshell = createobject(”wscript.shell”)wshshell.sendkeys “{down}” //键盘向下的箭头wshshell.sendkeys “{down}”wshshell.sendkeys “{enter}” //回车键step 4,修改replaytype为1(使用浏览器事件运行鼠标操作)setting.webpackage(”replaytype”) = 1good to go now. (转载请注明出处:[url=http://www.live588.org]淘金盈[/url][url=http://www.10086money.com]时尚资讯[/url])