我会努力工作,提高测试技能。
如何用QTP录制鼠标右键点击事件
上一篇 /
下一篇 2010-01-02 13:38:31
/ 个人分类:QTP
Step1:
Setting.WebPackage(”ReplayType”) = 2
Step2:
Browser("Google").Page("Google").Link("高级").FireEvent"onclick",,,micRightBtn
FireEvent的用法如下:
Argument | Description |
object | A test object of type WebElement. |
EventName | Required. A String value. The name of event to trigger. Available events:onchange,onclick,ondblclick, onblur,onfocus,onmousedown,onmouseup,onmouseover,onmouseout,onsubmit,onreset,onpropertychange. |
x | Optional. A Long value. The x-coordinate, relative to the upper left corner of the object. |
y | Optional. A Long value. The y-coordinate, relative to the upper left corner of the object. |
BUTTON | Optional. A predefined constant or number. See the Constants table, below. The mouse button used to fire the object. Default =micLeftBtn(0). |
收藏
举报
TAG: