From 943e718130aa45e03864a981d6b8198c706ad22f Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 6 Jun 2024 05:04:32 +0530 Subject: [PATCH] feat: filter attributes --- server/src/workflow-management/selector.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/workflow-management/selector.ts b/server/src/workflow-management/selector.ts index e811db3f..3cf8bb34 100644 --- a/server/src/workflow-management/selector.ts +++ b/server/src/workflow-management/selector.ts @@ -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); + + }) ); }