feat: add attribute value iff val !null & len > 0

This commit is contained in:
karishmas6
2024-06-06 05:05:10 +05:30
parent 943e718130
commit 81faceb2f7

View File

@@ -630,7 +630,7 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
return new Set(
attributes.filter((attr) => {
const attrValue = element.getAttribute(attr);
return attrValue != null && attrValue.length > 0;
})
);
}