feat: try each candidate path to see if it uniquely identifies an element on the webpage

This commit is contained in:
karishmas6
2024-06-05 22:27:41 +05:30
parent 6dda179409
commit 1eeb73b93e

View File

@@ -260,6 +260,12 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
return fallback ? fallback() : null;
}
for (let candidate of paths) {
if (unique(candidate)) {
}
}
return null;
}