ThomasCasserly
7 years agoFrequent Contributor
HTML 5 custom data attribute and namemapping web page objects
Hi all,
As part of the web appication I'm testing we decided to add a html 5 custom data attribute to objects to allow unique object identification to be performed.
Developers proposed tha...
- 7 years ago
Hi Tom,
The real unique identification of web elements is assigning them 'id' attribute.
Custom data attribute is a kind of cheat that has some reason behind it but cannot be considered as a true unique identification. However, this is the only way to provide more or less unique identification for web elements that can be done with a lot of modern fancy web-script frameworks.
Support for custom data attributes was added to TC 12.60 Beta (https://community.smartbear.com/t5/TestComplete-General-Discussions/TestComplete-Beta-Program-Try-AI-Driven-Visual-Testing/td-p/168632) and you are welcome to apply to it.