Overview
The "Override Default Self-Healing" setting determines the strictness of validation when selecting an element. This setting is crucial for balancing precision and flexibility in automated tasks. A higher value, like Conservative (10), enforces stricter matching, while lower values allow for more flexibility.
How It Works
- Conservative (10): This level enforces strict validation. It attempts to match the exact element that was learned from a previous successful run, prioritizing precision.
- Lower Values (e.g., Default 5): These levels are more flexible. If the original element locator has changed, the system will search for similar or alternative elements. This provides a balance between accuracy and adaptability.
Recommended Usage
- When to use Conservative (10): Use this setting for stable elements that have been correctly targeted in a previous successful run. This helps prevent the system from drifting to a similar but incorrect element.
- When to use lower values: Use a lower value when the application's user interface is evolving or elements are expected to change frequently. This allows the system to adapt and helps establish a valid Previous Successful Run (PSR).
- When to keep the default: If a step is already making correct selections with the default setting (e.g., 5), it is recommended to keep it. This provides a good balance between flexibility and accuracy without being overly restrictive.
Best Practice
Start with the default value and only increase strictness when necessary. Overly conservative settings can reduce adaptability, while overly flexible settings may increase the risk of incorrect element selection.