From ab7f5f969bea34e90425cd7bb69aeef236433327 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 2 Sep 2024 11:54:02 +0530 Subject: [PATCH] fix: remove hard-coded selectors for selector path --- server/src/workflow-management/selector.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/src/workflow-management/selector.ts b/server/src/workflow-management/selector.ts index b3bc27f9..1941e49d 100644 --- a/server/src/workflow-management/selector.ts +++ b/server/src/workflow-management/selector.ts @@ -760,12 +760,6 @@ export const getNonUniqueSelectors = async (page: Page, coordinates: Coordinates while (element && element !== document.body && depth < maxDepth) { const selector = getNonUniqueSelector(element); - // Stop adding selectors when we reach certain container elements - if (selector.includes('quotes') || selector.includes('container')) { - path.unshift(selector); - break; - } - path.unshift(selector); element = element.parentElement; depth++; @@ -790,6 +784,7 @@ export const getNonUniqueSelectors = async (page: Page, coordinates: Coordinates } }; + /** * Returns the first pair from the given workflow that contains the given selector * inside the where condition, and it is the only selector there.