feat: skip if this modified path has already been explored

This commit is contained in:
karishmas6
2024-06-06 00:34:56 +05:30
parent 28963cb96f
commit e0072bdff9

View File

@@ -447,6 +447,9 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
const newPath = [...path];
newPath.splice(i, 1);
const newPathKey = selector(newPath);
if (scope.visited.has(newPathKey)) {
return;
}
}
}