feat: create selector node representing :nth-chil()d pseudo-class
This commit is contained in:
@@ -388,6 +388,13 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function nthChild(node: Node, i: number): Node {
|
||||||
|
return {
|
||||||
|
name: node.name + `:nth-child(${i})`,
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user