feat: check if attribute defined

This commit is contained in:
karishmas6
2024-06-06 05:07:03 +05:30
parent 81faceb2f7
commit 23a96b8118

View File

@@ -635,7 +635,11 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
);
}
function isAttributesDefined(element: HTMLElement, attributes: string[]) {
return genAttributeSet(element, attributes).size > 0;
}
};