Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I automatically validate that I have an HTML Id on every element?

The testers on my project want a unique HTML ID on every page element to make their automated testing easier.

It's hard for me to remember to do this, because I don't need the IDs for development. How can I ensure that I don't forget?

I thought maybe something like Checkstyle could tell me, or even the "inspections" in IntelliJ - but neither of them seem to support this functionality.

Any ideas?

like image 797
Daniel Alexiuc Avatar asked Nov 27 '22 23:11

Daniel Alexiuc


1 Answers

Two ideas come to mind: 1. let them tell you what doesn't have it. If that doesn't work, 2. get new testers. ;)

What kind of testing engine requires Id's on every element?

like image 135
NotMe Avatar answered Dec 04 '22 10:12

NotMe