feat: check if provided CSS sel path selects the same el as input el
This commit is contained in:
@@ -430,7 +430,11 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
|||||||
visited: Map<string, boolean>;
|
visited: Map<string, boolean>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
function same(path: Path, input: Element) {
|
||||||
|
return rootDocument.querySelector(selector(path)) === input;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user