feat: add attribute value iff val !null & len > 0
This commit is contained in:
@@ -630,7 +630,7 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
|||||||
return new Set(
|
return new Set(
|
||||||
attributes.filter((attr) => {
|
attributes.filter((attr) => {
|
||||||
const attrValue = element.getAttribute(attr);
|
const attrValue = element.getAttribute(attr);
|
||||||
|
return attrValue != null && attrValue.length > 0;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user