<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mandavilli Vijay</title>
    <description>The latest articles on DEV Community by Mandavilli Vijay (@mandavillivijay).</description>
    <link>https://dev.to/mandavillivijay</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F589892%2Fe8a7b4fb-4a06-449b-81ff-e2acf644df2e.png</url>
      <title>DEV Community: Mandavilli Vijay</title>
      <link>https://dev.to/mandavillivijay</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mandavillivijay"/>
    <language>en</language>
    <item>
      <title>Why Healenium Fails on Ant Design (And What I Built Instead)</title>
      <dc:creator>Mandavilli Vijay</dc:creator>
      <pubDate>Thu, 25 Jun 2026 09:59:51 +0000</pubDate>
      <link>https://dev.to/mandavillivijay/why-healenium-fails-on-ant-design-and-what-i-built-instead-3p0j</link>
      <guid>https://dev.to/mandavillivijay/why-healenium-fails-on-ant-design-and-what-i-built-instead-3p0j</guid>
      <description>&lt;p&gt;&lt;em&gt;TL;DR: I built an open-source Python library that uses semantic embeddings to heal broken UI test locators including cases where every existing tool silently fails. It's called CANVAS and it's on PyPI.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The Test That Broke Everything
&lt;/h2&gt;

&lt;p&gt;Picture this. Your team just shipped a major redesign. The dev who did it was careful — accessibility labels intact, same user flows, same button functions. Just a new component library. Ant Design replacing hand-rolled HTML.&lt;/p&gt;

&lt;p&gt;You run your test suite the next morning.&lt;/p&gt;

&lt;p&gt;317 failures.&lt;/p&gt;

&lt;p&gt;Not because anything broke for users. Because every locator your tests relied on — IDs, class names, XPath selectors — pointed at a DOM that no longer exists. The &lt;code&gt;#submit-btn&lt;/code&gt; is gone. The &lt;code&gt;.form-input&lt;/code&gt; class now belongs to every single input on the page. The button text moved into a nested &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Your self-healing tool? It tried. It fell back through its attribute chain. It computed tree edit distances. And then it gave up, because when every input has &lt;code&gt;class="ant-input"&lt;/code&gt; and no IDs exist, there is nothing structural left to grab onto.&lt;/p&gt;

&lt;p&gt;I've watched this happen too many times across too many projects. So I built something different.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem With How Self-Healing Works Today
&lt;/h2&gt;

&lt;p&gt;Most self-healing test frameworks — including the popular open-source Healenium — work by asking: &lt;em&gt;what does this element look like in the DOM?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;They record attributes at test-creation time: the ID, the class name, the XPath position, the tag hierarchy. When a locator breaks, they search the new DOM for the candidate that most closely matches those recorded attributes.&lt;/p&gt;

&lt;p&gt;This works fine for conservative changes. An ID rename. A class tweak. A button moving one level up in the hierarchy.&lt;/p&gt;

&lt;p&gt;It completely falls apart when a design-system migration:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Removes all IDs (they were implementation details anyway)&lt;/li&gt;
&lt;li&gt;Assigns one shared class to every element of the same type&lt;/li&gt;
&lt;li&gt;Moves elements across DOM containers&lt;/li&gt;
&lt;li&gt;Restructures the entire page hierarchy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because at that point, the structural signals are gone. And structural signals are all those tools have.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Insight That Changes Everything
&lt;/h2&gt;

&lt;p&gt;Here's what I noticed: &lt;strong&gt;accessibility metadata survives redesigns by design.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When a developer migrates from raw HTML to Ant Design, they're changing the visual presentation and the DOM structure. But they're not changing what the button &lt;em&gt;does&lt;/em&gt;. And if they're doing their job properly, the &lt;code&gt;aria-label&lt;/code&gt; on the "Submit Order" button still says "Submit Order". The section heading above the card inputs still says "Payment Details". The landmark region around the form is still a form.&lt;/p&gt;

&lt;p&gt;These signals are stable because they're authored for a different consumer — screen readers and assistive technology — that the redesign doesn't touch.&lt;/p&gt;

&lt;p&gt;So instead of asking "what does this element look like?", I built something that asks: &lt;strong&gt;"what does this element &lt;em&gt;mean&lt;/em&gt;?"&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  How CANVAS Works
&lt;/h2&gt;

&lt;p&gt;CANVAS (Context-Aware Navigation and Visual Anchoring System for Selectors) is a Python library that treats locator healing as a semantic retrieval problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;At record time&lt;/strong&gt;, for each element you want to track, CANVAS extracts a semantic descriptor — a structured representation of the element's functional identity:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;canvas_heal&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SemanticDescriptor&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;IntentEmbedder&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ConfidenceGatedResolver&lt;/span&gt;

&lt;span class="c1"&gt;# Record an intent against your V1 page
&lt;/span&gt;&lt;span class="n"&gt;descriptor&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;extract_from_playwright&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;#submit-btn&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Captures: role="button", label="Submit Order",
#           heading="Checkout", landmark="form"
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That descriptor gets serialised into a natural-language intent string:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;button labeled 'Submit Order' inside form under heading 'Checkout'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then it gets encoded into a 384-dimensional dense vector using a locally-running sentence-transformer model (&lt;code&gt;all-MiniLM-L6-v2&lt;/code&gt;). No API calls. No cloud. Runs entirely on your machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;At resolve time&lt;/strong&gt;, when your test runs against the redesigned page, CANVAS:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Extracts the same descriptor for every candidate element in the new DOM&lt;/li&gt;
&lt;li&gt;Embeds all candidates in one batch pass&lt;/li&gt;
&lt;li&gt;Finds the closest semantic match by cosine similarity&lt;/li&gt;
&lt;li&gt;Routes through a &lt;strong&gt;three-tier confidence gate&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That last part is important. Most self-healing tools make a binary decision: heal or fail. CANVAS has three outcomes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;≥ 0.92&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;HEALED&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Test continues automatically&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0.75 – 0.92&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;NEEDS_CONFIRMATION&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Test flagged for human review&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;lt; 0.75&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;FAILED&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Test aborts with a clear error&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This matters because silent false positives — where a tool heals to the &lt;em&gt;wrong&lt;/em&gt; element — are worse than test failures. A test that passes on the wrong button is a test that gives you false confidence.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Ant Design Migration: Where Everything Else Fails
&lt;/h2&gt;

&lt;p&gt;Let me show you the scenario that motivated all of this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;V1: Raw HTML checkout&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"email-input"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"email-field"&lt;/span&gt; 
       &lt;span class="na"&gt;aria-label=&lt;/span&gt;&lt;span class="s"&gt;"Email address"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"card-input"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"card-field"&lt;/span&gt;
       &lt;span class="na"&gt;aria-label=&lt;/span&gt;&lt;span class="s"&gt;"Card number"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"submit-btn"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Place Order&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;V2: After Ant Design migration&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ant-input"&lt;/span&gt; &lt;span class="na"&gt;aria-label=&lt;/span&gt;&lt;span class="s"&gt;"Email address"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ant-input"&lt;/span&gt; &lt;span class="na"&gt;aria-label=&lt;/span&gt;&lt;span class="s"&gt;"Card number"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ant-btn-text"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Place Order&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;V3: CTA button moves to sticky footer&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- Form no longer contains the submit button --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;footer&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"sticky-footer"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ant-btn"&lt;/span&gt; &lt;span class="na"&gt;aria-label=&lt;/span&gt;&lt;span class="s"&gt;"Place Order"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ant-btn-text"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Place Order&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/footer&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's what happens to Healenium-style selectors at each stage:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;V1→V2&lt;/strong&gt;: ID selectors break immediately (IDs gone). Class selectors can't distinguish inputs (all are &lt;code&gt;ant-input&lt;/code&gt;). Every attribute-based tool fails here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;V2→V3&lt;/strong&gt;: XPath structural selectors break because the button left the form container. Even if you survived V2, you don't survive V3.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's what CANVAS does:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;Intent&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ds_email_input&lt;/span&gt;
&lt;span class="na"&gt;V2 confidence&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;0.963 → HEALED ✓&lt;/span&gt;

&lt;span class="na"&gt;Intent&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ds_card_input&lt;/span&gt;  
&lt;span class="na"&gt;V2 confidence&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;0.984 → HEALED ✓&lt;/span&gt;

&lt;span class="na"&gt;Intent&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ds_submit_btn&lt;/span&gt;
&lt;span class="na"&gt;V2 confidence&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;1.000 → HEALED ✓  (aria-label identical)&lt;/span&gt;
&lt;span class="na"&gt;V3 confidence&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;≥0.75 → HEALED ✓  (moved outside form, still healed)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All five intents heal across both migration stages. The &lt;code&gt;aria-label&lt;/code&gt; is the anchor that survives everything.&lt;/p&gt;

&lt;p&gt;And when I deliberately test the failure case — a button whose text changed from "Place Order" to "Complete Purchase" with no &lt;code&gt;aria-label&lt;/code&gt; — CANVAS correctly returns &lt;strong&gt;FAILED (0.619)&lt;/strong&gt; rather than silently healing to the wrong element. The confidence gate works in both directions.&lt;/p&gt;




&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;canvas-heal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Record your intents&lt;/strong&gt; against your current page:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;canvas-heal rerecord &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--url&lt;/span&gt; https://yourapp.com/checkout &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--selector&lt;/span&gt; &lt;span class="s2"&gt;"#submit-btn"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--name&lt;/span&gt; checkout_submit &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--db&lt;/span&gt; tests/intents.db
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Use in your pytest suite&lt;/strong&gt; with zero boilerplate — the pytest plugin auto-loads:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_checkout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;canvas_resolver&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;canvas_resolver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;checkout_submit&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;candidates&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;HEALED&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;click&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;NEEDS_CONFIRMATION&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;pytest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;skip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Intent uncertain (confidence=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;confidence&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;), needs review&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Works with both Playwright and Selenium.&lt;/strong&gt; Shadow DOM and iframes supported. Multilingual UI labels supported via model swap.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Makes This Different
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;CANVAS&lt;/th&gt;
&lt;th&gt;Healenium&lt;/th&gt;
&lt;th&gt;Commercial tools&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Healing approach&lt;/td&gt;
&lt;td&gt;Semantic embeddings&lt;/td&gt;
&lt;td&gt;XPath tree edit distance&lt;/td&gt;
&lt;td&gt;Attribute ensembles&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Survives shared-class migrations&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;False positive protection&lt;/td&gt;
&lt;td&gt;Three-tier confidence gate&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Varies&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runs locally&lt;/td&gt;
&lt;td&gt;✅ No API key&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌ Cloud required&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shadow DOM&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;Partial&lt;/td&gt;
&lt;td&gt;Varies&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open source&lt;/td&gt;
&lt;td&gt;MIT&lt;/td&gt;
&lt;td&gt;Apache 2.0&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  The Research Behind It
&lt;/h2&gt;

&lt;p&gt;I've also written this up as a research paper currently under submission to arXiv (cs.SE). The paper includes a formal evaluation methodology, comparison against baseline approaches, and the full adversarial test suite design. I'll update this post with the arXiv link once it's live.&lt;/p&gt;

&lt;p&gt;The test suite has 93 passing tests across unit, adversarial, and two real-world pilot scenarios. The adversarial suite includes 10 scenarios designed specifically to catch false positives — because a self-healing tool that over-heals is more dangerous than one that fails honestly.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;The roadmap includes PostgreSQL backend for parallel CI, a REST service mode so teams share one model instance instead of each agent downloading 90 MB, TypeScript and Java SDKs, and an automatic intent discovery tool that crawls your page and suggests intents without a manual record pass.&lt;/p&gt;

&lt;p&gt;The GitHub backlog is fully public if you want to follow along or contribute.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PyPI&lt;/strong&gt;: &lt;code&gt;pip install canvas-heal&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/mandavillivijay/canvas" rel="noopener noreferrer"&gt;github.com/mandavillivijay/canvas&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docs&lt;/strong&gt;: See the README for full CLI reference and pytest integration guide&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you've ever lost a day to locator maintenance after a redesign, I'd love to hear whether this solves your problem. Issues, PRs, and hard failure cases all welcome.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Tags: #testing #playwright #selenium #python #testautomation #opensource&lt;/em&gt;&lt;/p&gt;

</description>
      <category>testing</category>
      <category>python</category>
      <category>playwright</category>
      <category>selenium</category>
    </item>
  </channel>
</rss>
