Highlighted
Micro Focus Expert
Micro Focus Expert
174 views

<(UFT) Support Tip> UFT recognizing some objects differently after migrating to UFT 12.52 or later

Hi there,

Running existing tests on UFT 12.52 and above, may fail on certain steps due to the fact that UFT identifies some web objects in a different way. I’ve seen some users reporting this behavior lately.
For example, an Image test object may now be recognized as a WebButton test object if such Image has the role attribute as button (role=button). See example on JSFiddle. If we spy over the image, UFT will map this object to a WebButton even though the element uses a HTML img tag.

The reason why this happens is that, starting on UFT 12.52, it includes the ability to recognize web objects based on their HTML role attribute, using the Web Accessibility toolkit.
This helps UFT to better identify objects which use the HTML role attribute. This capability is enabled by default.

Even though we have Maintenance Run mode to help ease the task of updating the test objects in the object repository, it may be kind of cumbersome if we have multiple tests affected and few or no time to go over that.
A fast way to overcome this situation would be to instruct UFT to disable Web Accessibility support. For this, refer to the below knowledge document:
How to disable Web Accessibility Support?

The below spy result comparison was done using UFT 12.54 on the same object, before and after disabling Web Accessibility toolkit:

img1.jpg

Note: when changing the setting within the script, it is necessary to reload the page so UFT properly identifies the object with the new configuration.

Alvaro
HPE Support
If you find this useful, please mark Kudos

Labels (1)
0 Likes
0 Replies
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.