feat: push parentSelector

This commit is contained in:
amhsirak
2024-12-16 08:22:21 +05:30
parent e1476935db
commit 4a94960531

View File

@@ -968,6 +968,7 @@ export const getChildSelectors = async (page: Page, parentSelector: string): Pro
const childPath = getSelectorPath(child);
if (childPath) {
selectors.push(childPath); // Add direct child path
selectors.push(parentSelector)
selectors = selectors.concat(getAllDescendantSelectors(child)); // Recursively process descendants
}
}