Let's clear up once & for all which is THE best Selenium element selector out there! An expert has the answers we've all been looking for, gives us the pros and cons of each element selector strategy and recommends the ultimate choice for your test automation project. I advise you all to go read the article:
https://blog.testproject.io/2017/08/10/css-selector-custom-attributes/