Toggle between Mode X (stable IDs) and Mode Y (renamed IDs) to simulate a DOM refactor
Your automation script targets Mode X selectors. When the DOM switches to Mode Y, BrowserStack Self-Healing detects the change and repairs the locators automatically.