feat: increase penalty compared to base node
This commit is contained in:
@@ -391,7 +391,7 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
||||
function nthChild(node: Node, i: number): Node {
|
||||
return {
|
||||
name: node.name + `:nth-child(${i})`,
|
||||
|
||||
penalty: node.penalty + 1,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user