feat: check if path len is longer than 2 els & meets min optimization len
This commit is contained in:
@@ -438,7 +438,9 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
|||||||
visited: new Map<string, boolean>(),
|
visited: new Map<string, boolean>(),
|
||||||
}
|
}
|
||||||
): Generator<Node[]> {
|
): Generator<Node[]> {
|
||||||
|
if (path.length > 2 && path.length > config.optimizedMinLength) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function same(path: Path, input: Element) {
|
function same(path: Path, input: Element) {
|
||||||
|
|||||||
Reference in New Issue
Block a user