|
啊?还是不行,是不是对象识别有问题导致的?
QTP的帮助文档是很不错的,其实最好的讲解就在你的QTP里面
我帖出来吧
object.FireEvent EventName, [x], [y], [BUTTON]
Argument Description
object A test object of type Image.
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 pre-defined constant or number. See the Constants table, below.
The mouse button used to fire the object. Default = micLeftBtn (0).
The possible values for the BUTTON argument are:
Constant Value Description
micLeftBtn 0 The left mouse button.
micRightBtn 1 The right mouse button.
micMiddleBtn 2 The middle mouse button. |
|