JS Obtenha atributo personalizado
document.getElementById("divId").getAttribute("attributeId");
Gogo Dev
document.getElementById("divId").getAttribute("attributeId");
document.querySelector("div[data-automation='something']")
Select element by custom attribute