Skip to main content

Self-Healing Questions for Scenario Editor

    Last reviewed: September 30, 2026

    CouldUse wethis havearticle as a listfocused ofFAQ whatfor actionsScenario are included in self-healing, please?

    I’m a little unsure why Assert Contains text can be included withinEditor self-healing butbehavior, Assertreview Equalexpectations, /and Containslocator can’tmaintenance.

    be,

    What couldchanged in this bearticle

    explained?
    • Replaced
    Test Designer

    Ifterminology itwith isScenario Editor and changed the waytitle into a self-healing FAQ.

    Added guidance that it’sself-healing codedsuggestions couldshould webe lookreviewed atrather alternatives,than foraccepted example, could we have an Assert contains an option for attributes i.e. Assert Contains href. blindly.

    Is it possible to include more complex actionsClarified that would self-heal? i.e. “Assert text and store value”

    Responses:

    Below list of assessors that can be SelfHealed:

      findElsByJqStr

      focus

      blur

      expand

      doSearch

      collapse

      formSubmit

      pointerOut

      pointerOver

      pointerEnter

      pointerLeave

      pointerDown

      pointerUp

      click

      click2

      clickIfFound

      rightClick

      mouseOver

      mouseMove

      mouseDown

      mouseUp

      drop

      drag

      nativeDrag

      nativeDrop

      clickXY

      mouseOverXY

      mouseMoveXY

      mouseDownXY

      mouseUpXY

      mouseDrag

      mouseDrop

      doubleCkick

      doubleClickXY

      toggleStyle

      setCaretPosition

      sentEnter

      sentText

      selectText

      clearText

      sendKeys

      setValue

      setText

      setValuetoEditor

      setSelected

      setChecked

      reOrderListForVue

      break

      paste

      assertContrainsText

      assertDoesNotContainText

      waitUntilVideoCompleted

      keyboardCommand

      setHTML

      The two asserts that can be self-healed are bolded above, assertContainsText and assertDoesNotContainText.

      Regarding #2: Self-healing canhelps onlylocator updatedrift assessors. Assert equal uses a value andbut does not usereplace anstable assessor.locator Youdesign, would normally store “validatethisnumber” then you would assert equal “validatethisnumber” with a value of “5”assertions, or whateverfunctional maintenance.

      Validation workflow

      1. Review the numberoriginal is. Here is a screenshot example:

        Where you store a “value” in this caselocator, the namesuggested ishealed submitdis. Then you assert equal to the value that you stored.

        The same logic applies to assert contains, but slightly different. Assert contains works similar to assert text, however only looks for something inside a stored value.

        Note that the usual use case for this action follows the above screenshot where you store a value with text. Then you can assert contains text inside what you stored. It's similar but different to assertContainsTextlocator, and the reasonpage whycontext itbefore can't self-heal is that assert contains usesaccepting a valuechange.

      2. Replay asthe an assessor (or stored element) whereas assertContainsText uses an assessor.

        Regarding how you can make more complex actions that could self-heal. I have an idea that will allow youscenario to have more dynamic scripts and allow for more change, but won't be self-healed. The solution toconfirm the problemhealed islocator creating SmartTags. Essentially telling AIQ thatselects the intended element onconsistently.

      3. Update the pagescenario isor recognizedlocator asstrategy aif value.repeated Insteadhealing ofindicates havingunstable 1application setmarkup.
      assessor,

      Review younote: couldThis createarticle anow SmartTag that would pick up all assessors that look similar to “SmartTag 1” and allow your scripts to become more dynamic as you test without having to manually update all your assessors for your assert statements. It will just assist in picking up elements oncomplements the self-healing support page without updating.duplicating Again,its thisaccessor is not Self-Healing but would improve the functionality of your scripts by making them more dynamic allowing for less maintenance (purpose of Self-Healing).inventory.

      I had a meeting with our lead developer about your use case asking for more complex actions that would self-heal. He said at this moment we don’t currently support it, and it would be a major project to add self-healing to more assert’s as we would need AI deep learning to automatically pull assessors from the page that doesn’t currently exist. In the future, it's definitely a possibility, but at this moment and in the near future we don’t see this as a feature we will be able to support. We agree 100% that it would be awesome to include, just a massive project to start and finish.


      Last updated: AugustSeptember 25,30, 20232026

      If you have any feedback on this topic, please contact us at documentation@appvance.ai.