feat: skip if this modified path has already been explored
This commit is contained in:
@@ -447,6 +447,9 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
|||||||
const newPath = [...path];
|
const newPath = [...path];
|
||||||
newPath.splice(i, 1);
|
newPath.splice(i, 1);
|
||||||
const newPathKey = selector(newPath);
|
const newPathKey = selector(newPath);
|
||||||
|
if (scope.visited.has(newPathKey)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user