Skip to content

v4.0.0rc2 - #111

Open
VladimirPodolian wants to merge 32 commits into
masterfrom
locators-self-healing
Open

v4.0.0rc2#111
VladimirPodolian wants to merge 32 commits into
masterfrom
locators-self-healing

Conversation

@VladimirPodolian

Copy link
Copy Markdown
Member

No description provided.

@VladimirPodolian VladimirPodolian changed the title Locators self healing v4.0.0rc1 Jul 14, 2026
@VladimirPodolian VladimirPodolian changed the title v4.0.0rc1 v4.0.0rc2 Jul 15, 2026
Previously only stored snapshots were normalized, so dynamic data on a live
element (CSS-module hashes in `class`, numeric id suffixes, state classes)
unfairly penalized its candidates during scoring.

Now every DOM candidate is normalized with the same
`SnapshotStorage.normalize_snapshot()` rules as the saved reference, so both
sides of the comparison are cleaned equally. The raw (non-normalized)
candidate is still attached to the `SimilarityBreakdown` as
`candidate_snapshot` for diagnostics.

Also improved comparators: `class` similarity uses canonical word
tokenization (camelCase/kebab/snake/BEM) and text substring matches respect
word boundaries with a minimum length, avoiding short-token false positives.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant