Self-Healing Automation

Selectors

Healenium saves a successful locator in the storage to use it as a baseline for the next test executions

Locator

URL

Healing enable

By.xpath(//*[contains(text(), 'This loan was locked by user')])

class: com.healenium.pages.EncompassHomePage

method: tryHandleModalInCurrentContext

type: single

By.cssSelector(modal-component .modal-footer .btn-primary)

class: com.healenium.pages.EncompassHomePage

method: tryHandleModalInCurrentContext

type: multiple

By.tagName(iframe)

class: com.healenium.pages.EncompassHomePage

method: handleLoanLockModal

type: multiple

By.xpath(//nav[@aria-label='breadcrumb'])

class: com.healenium.pages.EncompassLoginPage

method: waitForLoginComplete

type: single

By.xpath(//button[contains(translate(text(), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), 'log in') or @type='submit'])

class: com.healenium.pages.BasePage

method: waitForClickable

type: single

By.xpath(//input[@placeholder='Instance ID'])

class: com.healenium.tests.HealeniumHealingDemoTest

method: testHealeniumHealsChangedLocator

type: single

By.cssSelector(#instanceId)

type: single

By.id(instanceId)

class: com.healenium.utils.WaitUtil

method: waitFor

type: single