feat: check if attribute defined
This commit is contained in:
@@ -635,7 +635,11 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isAttributesDefined(element: HTMLElement, attributes: string[]) {
|
||||||
|
return genAttributeSet(element, attributes).size > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user