feat: create a new Set object to store unique attribute values
This commit is contained in:
@@ -625,8 +625,14 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
||||
formSelector,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
function genAttributeSet(element: HTMLElement, attributes: string[]) {
|
||||
return new Set(
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -635,3 +641,4 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user