Customizing mouse operations (DeviceReplay)

The DeviceReplay object enables us to perform mouse and keyboard operations using code, for instance MouseMove, MouseClick, PressKey, SendString, and DragAndDrop. Though in past years it was not so well documented in HP's materials, now, thanks to the work of some very dedicated people from the QTP (UFT) community, light has been shed upon the workings of this object.

The DeviceReplay object is very important for automation, one reason being that the common Test Object methods that UFT provides, such as Click, do not always perform well. For example, quite often, one can encounter objects that do not respond to an onclick event unless the mouse is actually moved to a location within its bounding rectangle. ...

Get Advanced UFT 12 for Test Engineers Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.