feat: get the element's level (depth in DOM tree)

This commit is contained in:
karishmas6
2024-06-05 22:32:19 +05:30
parent 8e2b0b4550
commit f3a1e7b9f6

View File

@@ -272,7 +272,12 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
function selector(path: Path): string {
let node = path[0];
let query = node.name;
for (let i = 1; i < path.length; i++) {
const level = path[i].level || 0;
}
}