AI-Enabled Auto-Healing for Web Applications


Testsigma’s AI-Enabled auto-healing automatically detects and fixes broken element locators caused by UI changes during web test execution. This article discusses how auto-healing identifies and updates element locators while executing web test cases.


Prerequisites

Before you begin, ensure that you have referred to:

  1. Documentation on enabling the auto-healing feature.
  2. Documentation on managing test cases.
  3. Documentation on creating elements.

Use Case for Auto-Healing

Let’s say we are testing a login page for https://www.facebook.com/.

Here are the steps to produce:

  • Navigate to https://www.facebook.com/.
  • Enter demo@example.com in the Email address or phone number field.
  • Enter demopassword in the Password Input field.
  • Click on Log in Button.

Consider that the XPATH for the Email address or phone number button on step 2 changed from input["email"] to input[id="email"].

On executing the test case with the Auto-Healing feature enabled, the test lab will successfully locate the element with the new XPATH.

Auto-Heal Web


Auto-Healing Insights

Once the test execution is complete, please refer to the documentation on Auto-Healing Insights to view the auto-healing results and learn how to update the element locator.