feat: filter attributes

This commit is contained in:
karishmas6
2024-06-06 05:04:32 +05:30
parent 67827f9202
commit 943e718130

View File

@@ -628,7 +628,10 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
function genAttributeSet(element: HTMLElement, attributes: string[]) {
return new Set(
attributes.filter((attr) => {
const attrValue = element.getAttribute(attr);
})
);
}