feat: return first unique path found
This commit is contained in:
@@ -262,7 +262,7 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
|||||||
|
|
||||||
for (let candidate of paths) {
|
for (let candidate of paths) {
|
||||||
if (unique(candidate)) {
|
if (unique(candidate)) {
|
||||||
|
return candidate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user