Highlighted
New Member.
242 views

Help with UI test automation where HTML DOM attributes change frequently

Hi Micro Focus Experts,

We are using UFT 12.53 for UI automation of a SaaS solution and the challenge we are facing is that the HTML/DOM model behind the scenes is changing significantly every time, even with small updates. The HTML Id's are being dynamically generated every time. This is causing the automation scripts to fail. We are using Descriptive Style at the moment.

If we use Object Repository, it also uses the HTML attributes behind the scenes. However, what I wanted to understand is that if the 'x' and 'y' co-ordinates do not change, would using the OR help in lending reliability to the scripts in place of using the HTML id/xpath attributes? If the underlying xpath or id's change, would it render the OR also unusable?

Any guidance would be greatly appreciated

Regards,

Debraj Banerjee

0 Likes
2 Replies
Highlighted
Knowledge Partner
Knowledge Partner

Re: Help with UI test automation where HTML DOM attributes change frequently

You could try using Low-Level recording but that too has it's problems/limitations.

Don't the objects have text labels you can use to identify them?

Mark Smith.

 

0 Likes
Highlighted
New Member.

Re: Help with UI test automation where HTML DOM attributes change frequently

Hi Mark,

Thanks for such a quick response.

For labels, still using a relative xpath with text functions are helping, but problem is especially with elements which require inputs or dropdowns. Unfortunately, the abstraction levels are also changing, e.g. in some case where initially something which was a Weblist changes to a highler level of abstraction to become a Webelement causing the Selection method to fail.

It is just not reliable and unfortunately being a SaaS the control over keeping a consistent UI design is almost non-existent.

Regards,

Debraj Banerjee

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.