Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Highlighted
Absent Member.. vzamoraz Absent Member..
Absent Member..
977 views

QTP/UFT support tip: How change mouse replay type

There are scenarios were a scritp is replaying some actions do not occur as expected. Often changing the Web add-in's replay type from event to mouse, or vise versa, will help

 

To change the event type for the entire script follow these steps:

  1. From the Tools menu, select Options.
  2. Select  Web.
  3. Click Advanced.
  4. Under Replay type in the Run settings, select Event or Mouse, as necessary.
  5. Click OK to close the dialogs.

 

Also you can made this change by code in case that the change wants to be applied to spefic llines of code.

To set QuickTest Professional to replay by mouse clicks, use:

Setting.webpackage("ReplayType") = 2 'Mouse

To set QuickTest Professional to replay by Web events, use:

Setting.webpackage("ReplayType") = 1 'Event

 

Note:
You can get the current replay mode using the following syntax:

orig = Setting.webpackage("ReplayType")

 

 

Regards.

HP support

 

 

Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.