Expand description
Adaptive element similarity search for crate::page::PageHandle.
Computes a structural fingerprint for a reference DOM node and finds candidates on the current page that exceed a configurable similarity threshold, even after class names or depth have shifted.
Structs§
- Element
Fingerprint - A structural snapshot of a DOM element for similarity comparison.
- Similar
Match - A candidate element that exceeded the similarity threshold.
- Similarity
Config - Tuning parameters for
crate::page::PageHandle::find_similar.
Functions§
- jaccard_
weighted - Compute the weighted Jaccard similarity between two element fingerprints.