Releases: mayflower-tech/mayflower-mops
Releases · mayflower-tech/mayflower-mops
Release list
Release 4.0.0.1rc2
Release 4.0.0.1rc1
Added
- Self-healing locators — automatic recovery of broken element locators at runtime
mops/self_healing/package with config, healer, locator generator, and snapshot storage@healingdecorator — applied to action methods (click,type_text,get_attribute,text, etc.),
catchesNoSuchElementException, heals the locator via similarity scoring, and retries the method@healing_after_waitdecorator — applied towait_visibilityandwait_availability;
triggers healing after the wait condition times out@no_healingdecorator — temporarily disables healing for specific methods (is_displayed,wait_hidden)SelfHealingConfigwithconfigure()/get_config()for global configuration- Snapshot capture on successful element lookup (tag, attributes, text, parent, up to 5 siblings)
- Candidate search — JS script collects all same-tag elements, scores each against the saved snapshot
- Similarity scoring with tunable per-attribute weights (
ScoringWeights) - Locator generation pipeline
SnapshotStorageABC for pluggable backends (Redis, S3, PostgreSQL, etc.)JsonFileSnapshotStorage— default JSON file-based backend- Snapshot normalization rules to strip dynamic data (CSS hashes, state classes, etc.)
- Callbacks:
on_healing_success/on_healing_failurefor external integrations (metrics, alerting) - Full documentation in
docs/source/other/self_healing.md
Changed
- Selenium & Playwright action methods now decorated with
@healingfor transparent self-healing wait_visibilityrefactored into_wait_visibility_baseto properly stack@healing_after_waitwith@wait_condition/@wait_continuouswait_availabilitydecorated with@healing_after_waitfor wait-timeout healing- Playwright element methods (
click,type_text,type_slowly,clear_text,hover) now convertplaywright.ErrortoNoSuchElementExceptionfor consistent healing trigger wait_visibility_without_error— corrected log message from "hidden" to "visible" for non-continuous mode
Release 3.5.0.1
What's Changed
- Update develop with master by @VladimirPodolian in #4
Full Changelog: https://github.com/mayflower-tech/mayflower-mops/commits/3.5.0.1