feat: create selector node representing :nth-chil()d pseudo-class

This commit is contained in:
karishmas6
2024-06-05 23:26:56 +05:30
parent ae4d58ab0b
commit 37a1879c93

View File

@@ -388,6 +388,13 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
return i;
}
function nthChild(node: Node, i: number): Node {
return {
name: node.name + `:nth-child(${i})`,
};
}
};