5 Tips to Distinguish Good and Bad Locators

[This article originally appeared on: https://logigear.github.io/pombuilderblog/blog/2018/12/24/5-tips-to-distinguish-good-and-bad-locators.html] Why reading these tips? Warmest greetings from the POM Builder team! We hope you’re doing well. To make life easier for hundreds of thousands of automation engineers, our team has come up with an idea: why not start at the beginning? As you might already know, Test Automation usually begins with mapping UI elements on the web app under test. The result of this mapping process is called element locators or selectors. Some refer to the process as capturing web elements. Only after we have those element locators in place, we start interacting with the web elements in our test cases. If we fail at capturing good locators for those web elements, very soon we’ll regret not doing a better job from the beginning. This seemingly easy task tells experienced testers apart from inexperienced ones. Those experienced testers s...