Dataset Viewer
Auto-converted to Parquet Duplicate
id
large_stringlengths
16
16
page_type
large_stringclasses
8 values
naming_style
large_stringclasses
4 values
target_description
large_stringclasses
73 values
target_before
large_stringlengths
335
517
original_locator
large_stringclasses
882 values
changes
large_stringlengths
24
533
change_types
large_stringclasses
894 values
original_locator_status
large_stringclasses
4 values
target_present
bool
2 classes
healed_locator
large_stringclasses
875 values
target_after
large_stringlengths
4
526
candidates
large_stringlengths
4.24k
8.23k
difficulty
large_stringclasses
3 values
html_before
large_stringlengths
1.22k
3.16k
html_after
large_stringlengths
1.19k
3.24k
shl-cacd5094ff28
checkout
utility
'Apply coupon' button
{"tag": "button", "id": "checkout-apply-coupon", "classes": ["rounded", "gap-2", "mt-2"], "testid": "apply-coupon-button", "text": "Apply coupon", "aria_label": null, "name": null, "type": "submit", "placeholder": null, "href": null, "role": "button", "accessible_name": "Apply coupon", "css_path": "html > body > main >...
{"strategy": "xpath", "value": "/html/body[1]/main[1]/form[1]/button[1]"}
["cookie banner inserted at the top of the page", "look-alike <button> added in the header", "element wrapped in a new <div> container"]
["insert_banner", "add_decoy", "wrap"]
wrong_element
true
{"strategy": "testid", "value": "[data-testid=\"apply-coupon-button\"]"}
{"tag": "button", "id": "checkout-apply-coupon", "classes": ["rounded", "gap-2", "mt-2"], "testid": "apply-coupon-button", "text": "Apply coupon", "aria_label": null, "name": null, "type": "submit", "placeholder": null, "href": null, "role": "button", "accessible_name": "Apply coupon", "css_path": "html > body > main >...
[{"tag": "button", "id": null, "classes": [], "testid": null, "text": "Accept all", "aria_label": null, "name": null, "type": "button", "placeholder": null, "href": null, "role": "button", "accessible_name": "Accept all", "css_path": "html > body > div > button", "section": "body", "label_text": "", "position_in_sectio...
hard
<!DOCTYPE html> <html lang="en"> <head><title>Checkout | Acme</title></head> <body> <header><nav><a href="/home" class="mt-2 shadow-sm text-white hover:bg-blue-700 items-center" data-testid="home-link">Home</a><a href="/products" class="bg-slate-100 font-medium w-full px-4 border flex">Products</a><a href="/pricing" id...
<!DOCTYPE html> <html lang="en"> <head><title>Checkout | Acme</title></head> <body> <div class="cookie-banner"> <p>We use cookies to improve your experience.</p> <button type="button">Accept all</button> </div> <header><nav><a href="/home" class="mt-2 shadow-sm text-white hover:bg-blue-700 items-center" data-testid="ho...
shl-b31fd3a7ca17
contact
bem
'Subject' text field
{"tag": "input", "id": "subjectText", "classes": ["contact-form__field"], "testid": null, "text": "", "aria_label": null, "name": "subject", "type": "text", "placeholder": "Subject", "href": null, "role": "textbox", "accessible_name": "Subject", "css_path": "html > body > main > form > div:nth-of-type(3) > input", "sec...
{"strategy": "id", "value": "#subjectText"}
["label 'Subject' → 'Subject (required)'; placeholder 'Subject' → 'Enter subject'", "id 'subjectText' removed"]
["relabel_field", "remove_id"]
no_match
true
{"strategy": "role", "value": "textbox[name=\"Enter subject\"]"}
{"tag": "input", "id": null, "classes": ["contact-form__field"], "testid": null, "text": "", "aria_label": null, "name": "subject", "type": "text", "placeholder": "Enter subject", "href": null, "role": "textbox", "accessible_name": "Enter subject", "css_path": "html > body > main > form > div:nth-of-type(3) > input", "...
[{"tag": "a", "id": "homeLink", "classes": ["contact-form__link"], "testid": null, "text": "Home", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/home", "role": "link", "accessible_name": "Home", "css_path": "html > body > header > nav > a:nth-of-type(1)", "section": "header", "label_tex...
hard
<!DOCTYPE html> <html lang="en"> <head><title>Contact | Acme</title></head> <body> <header><nav><a href="/home" id="homeLink" class="contact-form__link">Home</a><a href="/products" id="productsLink" class="contact-form__link">Products</a><a href="/pricing" id="pricingLink" class="contact-form__link">Pricing</a><a href=...
<!DOCTYPE html> <html lang="en"> <head><title>Contact | Acme</title></head> <body> <header><nav><a href="/home" id="homeLink" class="contact-form__link">Home</a><a href="/products" id="productsLink" class="contact-form__link">Products</a><a href="/pricing" id="pricingLink" class="contact-form__link">Pricing</a><a href=...
shl-c13798a16f1c
settings
bem
'Email' email field
{"tag": "input", "id": "emailEmail", "classes": ["settings-form__field"], "testid": "email-email", "text": "", "aria_label": null, "name": "email", "type": "email", "placeholder": "Email", "href": null, "role": "textbox", "accessible_name": "Email", "css_path": "html > body > main > form > div:nth-of-type(2) > input", ...
{"strategy": "role", "value": "textbox[name=\"Email\"]"}
["new <input> inserted before the element", "label 'Email' → 'Email address'; placeholder 'Email' → 'Email address'"]
["insert_sibling", "relabel_field"]
no_match
true
{"strategy": "testid", "value": "[data-testid=\"email-email\"]"}
{"tag": "input", "id": "emailEmail", "classes": ["settings-form__field"], "testid": "email-email", "text": "", "aria_label": null, "name": "email", "type": "email", "placeholder": "Email address", "href": null, "role": "textbox", "accessible_name": "Email address", "css_path": "html > body > main > form > div:nth-of-ty...
[{"tag": "a", "id": "homeLink", "classes": ["settings-form__link"], "testid": "home-link", "text": "Home", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/home", "role": "link", "accessible_name": "Home", "css_path": "html > body > header > nav > a:nth-of-type(1)", "section": "header", "l...
hard
<!DOCTYPE html> <html lang="en"> <head><title>Settings | Acme</title></head> <body> <header><nav><a href="/home" id="homeLink" class="settings-form__link" data-testid="home-link">Home</a><a href="/products" id="productsLink" class="settings-form__link" data-testid="products-link">Products</a><a href="/pricing" id="pric...
<!DOCTYPE html> <html lang="en"> <head><title>Settings | Acme</title></head> <body> <header><nav><a href="/home" id="homeLink" class="settings-form__link" data-testid="home-link">Home</a><a href="/products" id="productsLink" class="settings-form__link" data-testid="products-link">Products</a><a href="/pricing" id="pric...
shl-30cfa90485f7
search
utility
'View details' link
{"tag": "a", "id": null, "classes": ["w-full", "p-3", "bg-slate-100", "text-sm", "px-4"], "testid": null, "text": "View details", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/view-details", "role": "link", "accessible_name": "View details", "css_path": "html > body > main > form > a:nt...
{"strategy": "css_path", "value": "html > body > main > form > a:nth-of-type(1)"}
["element moved to a different position in its section"]
["move"]
works
true
{"strategy": "css", "value": "a.w-full.p-3.bg-slate-100"}
{"tag": "a", "id": null, "classes": ["w-full", "p-3", "bg-slate-100", "text-sm", "px-4"], "testid": null, "text": "View details", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/view-details", "role": "link", "accessible_name": "View details", "css_path": "html > body > main > form > a:nt...
[{"tag": "a", "id": null, "classes": ["mt-2", "rounded-lg", "p-3", "flex", "text-white", "bg-slate-100"], "testid": null, "text": "Home", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/home", "role": "link", "accessible_name": "Home", "css_path": "html > body > header > nav > a:nth-of-ty...
easy
<!DOCTYPE html> <html lang="en"> <head><title>Search | Acme</title></head> <body> <header><nav><a href="/home" class="mt-2 rounded-lg p-3 flex text-white bg-slate-100">Home</a><a href="/products" id="search-products" class="items-center p-3 flex">Products</a><a href="/pricing" class="p-3 flex gap-2">Pricing</a><a href=...
<!DOCTYPE html> <html lang="en"> <head><title>Search | Acme</title></head> <body> <header><nav><a href="/home" class="mt-2 rounded-lg p-3 flex text-white bg-slate-100">Home</a><a href="/products" id="search-products" class="items-center p-3 flex">Products</a><a href="/pricing" class="p-3 flex gap-2">Pricing</a><a href=...
shl-4083f30e3fef
checkout
hashed
'Country' dropdown
{"tag": "select", "id": null, "classes": ["Select_ghost__c1fC0"], "testid": "country-select", "text": "", "aria_label": "Country", "name": "country", "type": null, "placeholder": null, "href": null, "role": "combobox", "accessible_name": "Country", "css_path": "html > body > main > form > div:nth-of-type(5) > select", ...
{"strategy": "css", "value": "select[name=\"country\"]"}
["component redesigned: classes changed from 'Select_ghost__c1fC0' to 'Input_base__B7MtI'; name attribute renamed from 'country' to 'country_input'; aria-label 'Country' → 'Country (required)'"]
["redesign"]
no_match
true
{"strategy": "testid", "value": "[data-testid=\"country-select\"]"}
{"tag": "select", "id": null, "classes": ["Input_base__B7MtI"], "testid": "country-select", "text": "", "aria_label": "Country (required)", "name": "country_input", "type": null, "placeholder": null, "href": null, "role": "combobox", "accessible_name": "Country (required)", "css_path": "html > body > main > form > div:...
[{"tag": "a", "id": "checkout-home", "classes": ["Link_base__R1Gpl"], "testid": "home-link", "text": "Home", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/home", "role": "link", "accessible_name": "Home", "css_path": "html > body > header > nav > a:nth-of-type(1)", "section": "header", ...
hard
<!DOCTYPE html> <html lang="en"> <head><title>Checkout | Acme</title></head> <body> <header><nav><a href="/home" id="checkout-home" class="Link_base__R1Gpl" data-testid="home-link">Home</a><a href="/products" id="checkout-products" class="Link_base__eV2de">Products</a><a href="/pricing" id="checkout-pricing" class="Lin...
<!DOCTYPE html> <html lang="en"> <head><title>Checkout | Acme</title></head> <body> <header><nav><a href="/home" id="checkout-home" class="Link_base__R1Gpl" data-testid="home-link">Home</a><a href="/products" id="checkout-products" class="Link_base__eV2de">Products</a><a href="/pricing" id="checkout-pricing" class="Lin...
shl-597d7ffe4dfd
login
utility
'remember-me' checkbox
{"tag": "input", "id": null, "classes": ["flex", "hover:bg-blue-700", "py-2", "rounded-lg", "px-4", "border"], "testid": null, "text": "", "aria_label": null, "name": "remember-me", "type": "checkbox", "placeholder": null, "href": null, "role": "checkbox", "accessible_name": "", "css_path": "html > body > main > form >...
{"strategy": "css", "value": "input.flex.py-2.rounded-lg"}
["cookie banner inserted at the top of the page"]
["insert_banner"]
works
true
{"strategy": "css", "value": "input[name=\"remember-me\"]"}
{"tag": "input", "id": null, "classes": ["flex", "hover:bg-blue-700", "py-2", "rounded-lg", "px-4", "border"], "testid": null, "text": "", "aria_label": null, "name": "remember-me", "type": "checkbox", "placeholder": null, "href": null, "role": "checkbox", "accessible_name": "", "css_path": "html > body > main > form >...
[{"tag": "button", "id": null, "classes": [], "testid": null, "text": "Accept all", "aria_label": null, "name": null, "type": "button", "placeholder": null, "href": null, "role": "button", "accessible_name": "Accept all", "css_path": "html > body > div > button", "section": "body", "label_text": "", "position_in_sectio...
easy
<!DOCTYPE html> <html lang="en"> <head><title>Login | Acme</title></head> <body> <header><nav><a href="/home" class="mt-2 rounded-lg w-full gap-2 py-2 bg-blue-600">Home</a><a href="/products" class="rounded w-full flex px-4">Products</a><a href="/pricing" class="hover:bg-blue-700 text-sm p-3 font-medium text-white">Pri...
<!DOCTYPE html> <html lang="en"> <head><title>Login | Acme</title></head> <body> <div class="cookie-banner"> <p>We use cookies to improve your experience.</p> <button type="button">Accept all</button> </div> <header><nav><a href="/home" class="mt-2 rounded-lg w-full gap-2 py-2 bg-blue-600">Home</a><a href="/products" c...
shl-602ec1c414c1
login
hashed
'Email' email field
{"tag": "input", "id": "login-email", "classes": ["Input_base__UEP8K"], "testid": null, "text": "", "aria_label": null, "name": "email", "type": "email", "placeholder": null, "href": null, "role": "textbox", "accessible_name": "Email", "css_path": "html > body > main > form > div:nth-of-type(1) > input", "section": "fo...
{"strategy": "id", "value": "#login-email"}
["id 'login-email' removed"]
["remove_id"]
no_match
true
{"strategy": "css", "value": "input[name=\"email\"]"}
{"tag": "input", "id": null, "classes": ["Input_base__UEP8K"], "testid": null, "text": "", "aria_label": null, "name": "email", "type": "email", "placeholder": null, "href": null, "role": "textbox", "accessible_name": "", "css_path": "html > body > main > form > div:nth-of-type(1) > input", "section": "form", "label_te...
[{"tag": "a", "id": null, "classes": ["Link_ghost__i7ODX"], "testid": "home-link", "text": "Home", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/home", "role": "link", "accessible_name": "Home", "css_path": "html > body > header > nav > a:nth-of-type(1)", "section": "header", "label_tex...
easy
<!DOCTYPE html> <html lang="en"> <head><title>Login | Acme</title></head> <body> <header><nav><a href="/home" class="Link_ghost__i7ODX" data-testid="home-link">Home</a><a href="/products" class="Link_ghost__l9NNo" data-testid="products-link">Products</a><a href="/pricing" class="Link_default__T3ZVN" data-testid="pricin...
<!DOCTYPE html> <html lang="en"> <head><title>Login | Acme</title></head> <body> <header><nav><a href="/home" class="Link_ghost__i7ODX" data-testid="home-link">Home</a><a href="/products" class="Link_ghost__l9NNo" data-testid="products-link">Products</a><a href="/pricing" class="Link_default__T3ZVN" data-testid="pricin...
shl-61f915fddefe
signup
semantic
'Password' password field
{"tag": "input", "id": "signup-password", "classes": ["form-control"], "testid": null, "text": "", "aria_label": null, "name": "password", "type": "password", "placeholder": null, "href": null, "role": "textbox", "accessible_name": "Password", "css_path": "html > body > main > form > div:nth-of-type(3) > input", "secti...
{"strategy": "id", "value": "#signup-password"}
["component redesigned: id renamed from 'signup-password' to 'password_46'; classes changed from 'form-control' to 'shadow-sm rounded px-4'; name attribute renamed from 'password' to 'password_input'; label 'Password' → 'Your password'", "classes changed from 'shadow-sm rounded px-4' to 'app-form__field'"]
["redesign", "restyle_target"]
no_match
true
{"strategy": "id", "value": "#password_46"}
{"tag": "input", "id": "password_46", "classes": ["app-form__field"], "testid": null, "text": "", "aria_label": null, "name": "password_input", "type": "password", "placeholder": null, "href": null, "role": "textbox", "accessible_name": "Your password", "css_path": "html > body > main > form > div:nth-of-type(3) > inpu...
[{"tag": "a", "id": "signup-home", "classes": ["nav-link"], "testid": null, "text": "Home", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/home", "role": "link", "accessible_name": "Home", "css_path": "html > body > header > nav > a:nth-of-type(1)", "section": "header", "label_text": "",...
hard
<!DOCTYPE html> <html lang="en"> <head><title>Signup | Acme</title></head> <body> <header><nav><a href="/home" id="signup-home" class="nav-link">Home</a><a href="/products" id="signup-products" class="nav-link">Products</a><a href="/pricing" id="signup-pricing" class="nav-link">Pricing</a><a href="/help" id="signup-hel...
<!DOCTYPE html> <html lang="en"> <head><title>Signup | Acme</title></head> <body> <header><nav><a href="/home" id="signup-home" class="nav-link">Home</a><a href="/products" id="signup-products" class="nav-link">Products</a><a href="/pricing" id="signup-pricing" class="nav-link">Pricing</a><a href="/help" id="signup-hel...
shl-63eccba28101
checkout
bem
'Country' dropdown
{"tag": "select", "id": "countrySelect", "classes": ["checkout-form__field"], "testid": "country-select", "text": "", "aria_label": null, "name": "country", "type": null, "placeholder": null, "href": null, "role": "combobox", "accessible_name": "Country", "css_path": "html > body > main > form > div:nth-of-type(5) > se...
{"strategy": "id", "value": "#countrySelect"}
["cookie banner inserted at the top of the page", "element wrapped in a new <div> container", "name attribute renamed from 'country' to 'country_input'", "component redesigned: id renamed from 'countrySelect' to 'countryselect-v2'; data-testid 'country-select' removed; classes changed from 'checkout-form__field' to 'bo...
["insert_banner", "wrap", "rename_name", "redesign"]
no_match
true
{"strategy": "id", "value": "#countryselect-v2"}
{"tag": "select", "id": "countryselect-v2", "classes": ["border", "hover:bg-blue-700", "bg-blue-600", "shadow-sm"], "testid": null, "text": "", "aria_label": null, "name": "country_input_input", "type": null, "placeholder": null, "href": null, "role": "combobox", "accessible_name": "Country", "css_path": "html > body >...
[{"tag": "button", "id": null, "classes": [], "testid": null, "text": "Accept all", "aria_label": null, "name": null, "type": "button", "placeholder": null, "href": null, "role": "button", "accessible_name": "Accept all", "css_path": "html > body > div > button", "section": "body", "label_text": "", "position_in_sectio...
hard
<!DOCTYPE html> <html lang="en"> <head><title>Checkout | Acme</title></head> <body> <header><nav><a href="/home" id="homeLink" class="checkout-form__link" data-testid="home-link">Home</a><a href="/products" id="productsLink" class="checkout-form__link" data-testid="products-link">Products</a><a href="/pricing" id="pric...
<!DOCTYPE html> <html lang="en"> <head><title>Checkout | Acme</title></head> <body> <div class="cookie-banner"> <p>We use cookies to improve your experience.</p> <button type="button">Accept all</button> </div> <header><nav><a href="/home" id="homeLink" class="checkout-form__link" data-testid="home-link">Home</a><a hre...
shl-52858a5a2a7e
contact
utility
'Email' email field
{"tag": "input", "id": null, "classes": ["items-center", "rounded", "flex", "text-white"], "testid": null, "text": "", "aria_label": null, "name": "email", "type": "email", "placeholder": "Email", "href": null, "role": "textbox", "accessible_name": "Email", "css_path": "html > body > main > form > div:nth-of-type(2) > ...
{"strategy": "css", "value": "input[name=\"email\"]"}
["cookie banner inserted at the top of the page"]
["insert_banner"]
works
true
{"strategy": "role", "value": "textbox[name=\"Email\"]"}
{"tag": "input", "id": null, "classes": ["items-center", "rounded", "flex", "text-white"], "testid": null, "text": "", "aria_label": null, "name": "email", "type": "email", "placeholder": "Email", "href": null, "role": "textbox", "accessible_name": "Email", "css_path": "html > body > main > form > div:nth-of-type(2) > ...
[{"tag": "button", "id": null, "classes": [], "testid": null, "text": "Accept all", "aria_label": null, "name": null, "type": "button", "placeholder": null, "href": null, "role": "button", "accessible_name": "Accept all", "css_path": "html > body > div > button", "section": "body", "label_text": "", "position_in_sectio...
easy
<!DOCTYPE html> <html lang="en"> <head><title>Contact | Acme</title></head> <body> <header><nav><a href="/home" class="text-sm text-white w-full">Home</a><a href="/products" id="contact-products" class="items-center mt-2 border text-white rounded-lg">Products</a><a href="/pricing" id="contact-pricing" class="hover:bg-b...
<!DOCTYPE html> <html lang="en"> <head><title>Contact | Acme</title></head> <body> <div class="cookie-banner"> <p>We use cookies to improve your experience.</p> <button type="button">Accept all</button> </div> <header><nav><a href="/home" class="text-sm text-white w-full">Home</a><a href="/products" id="contact-product...
shl-35bf31ab1431
dashboard
hashed
'Team' link
{"tag": "a", "id": "dashboard-team", "classes": ["Link_base__gsX4Z"], "testid": null, "text": "Team", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/team", "role": "link", "accessible_name": "Team", "css_path": "html > body > main > section > a:nth-of-type(3)", "section": "section", "lab...
{"strategy": "xpath", "value": "/html/body[1]/main[1]/section[1]/a[3]"}
["cookie banner inserted at the top of the page"]
["insert_banner"]
works
true
{"strategy": "id", "value": "#dashboard-team"}
{"tag": "a", "id": "dashboard-team", "classes": ["Link_base__gsX4Z"], "testid": null, "text": "Team", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/team", "role": "link", "accessible_name": "Team", "css_path": "html > body > main > section > a:nth-of-type(3)", "section": "section", "lab...
[{"tag": "button", "id": null, "classes": [], "testid": null, "text": "Accept all", "aria_label": null, "name": null, "type": "button", "placeholder": null, "href": null, "role": "button", "accessible_name": "Accept all", "css_path": "html > body > div > button", "section": "body", "label_text": "", "position_in_sectio...
easy
<!DOCTYPE html> <html lang="en"> <head><title>Dashboard | Acme</title></head> <body> <header><nav><a href="/home" class="Link_default__wFVkW">Home</a><a href="/products" class="Link_ghost__zLuij">Products</a><a href="/pricing" class="Link_default__FjSTh">Pricing</a><a href="/help" class="Link_ghost__3o5cM" data-testid=...
<!DOCTYPE html> <html lang="en"> <head><title>Dashboard | Acme</title></head> <body> <div class="cookie-banner"> <p>We use cookies to improve your experience.</p> <button type="button">Accept all</button> </div> <header><nav><a href="/home" class="Link_default__wFVkW">Home</a><a href="/products" class="Link_ghost__zLui...
shl-e08a94b5e538
signup
hashed
'Email' email field
{"tag": "input", "id": "signup-email", "classes": ["Input_base__ojwgX"], "testid": null, "text": "", "aria_label": null, "name": "email", "type": "email", "placeholder": null, "href": null, "role": "textbox", "accessible_name": "Email", "css_path": "html > body > main > form > div:nth-of-type(2) > input", "section": "f...
{"strategy": "css", "value": "input[name=\"email\"]"}
["design-system migration: classes on 14 elements rewritten in hashed style"]
["restyle_page"]
works
true
{"strategy": "id", "value": "#signup-email"}
{"tag": "input", "id": "signup-email", "classes": ["Input_ghost__Y6PRS"], "testid": null, "text": "", "aria_label": null, "name": "email", "type": "email", "placeholder": null, "href": null, "role": "textbox", "accessible_name": "Email", "css_path": "html > body > main > form > div:nth-of-type(2) > input", "section": "...
[{"tag": "a", "id": "signup-home", "classes": ["Link_base__cDpat"], "testid": null, "text": "Home", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/home", "role": "link", "accessible_name": "Home", "css_path": "html > body > header > nav > a:nth-of-type(1)", "section": "header", "label_te...
hard
<!DOCTYPE html> <html lang="en"> <head><title>Signup | Acme</title></head> <body> <header><nav><a href="/home" id="signup-home" class="Link_default__Lqxlq">Home</a><a href="/products" id="signup-products" class="Link_ghost__eMzMY">Products</a><a href="/pricing" id="signup-pricing" class="Link_default__W83WC">Pricing</a...
<!DOCTYPE html> <html lang="en"> <head><title>Signup | Acme</title></head> <body> <header><nav><a href="/home" id="signup-home" class="Link_base__cDpat">Home</a><a href="/products" id="signup-products" class="Link_ghost__3L2e6">Products</a><a href="/pricing" id="signup-pricing" class="Link_default__T53Xx">Pricing</a><a...
shl-023f67cbeecc
dashboard
semantic
'Billing' link
{"tag": "a", "id": "dashboard-billing", "classes": ["nav-link"], "testid": "billing-link", "text": "Billing", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/billing", "role": "link", "accessible_name": "Billing", "css_path": "html > body > main > section > a:nth-of-type(4)", "section": "...
{"strategy": "text", "value": "Billing"}
["element moved to a different position in its section", "look-alike <a> added in the footer"]
["move", "add_decoy"]
ambiguous
true
{"strategy": "id", "value": "#dashboard-billing"}
{"tag": "a", "id": "dashboard-billing", "classes": ["nav-link"], "testid": "billing-link", "text": "Billing", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/billing", "role": "link", "accessible_name": "Billing", "css_path": "html > body > main > section > a:nth-of-type(3)", "section": "...
[{"tag": "a", "id": "dashboard-home", "classes": ["nav-link"], "testid": "home-link", "text": "Home", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/home", "role": "link", "accessible_name": "Home", "css_path": "html > body > header > nav > a:nth-of-type(1)", "section": "header", "label_...
hard
<!DOCTYPE html> <html lang="en"> <head><title>Dashboard | Acme</title></head> <body> <header><nav><a href="/home" id="dashboard-home" class="nav-link" data-testid="home-link">Home</a><a href="/products" id="dashboard-products" class="nav-link" data-testid="products-link">Products</a><a href="/pricing" id="dashboard-pri...
<!DOCTYPE html> <html lang="en"> <head><title>Dashboard | Acme</title></head> <body> <header><nav><a href="/home" id="dashboard-home" class="nav-link" data-testid="home-link">Home</a><a href="/products" id="dashboard-products" class="nav-link" data-testid="products-link">Products</a><a href="/pricing" id="dashboard-pri...
shl-038acda6288d
search
hashed
'Sort by' dropdown
{"tag": "select", "id": "search-sort-by", "classes": ["Select_default__IJCet"], "testid": null, "text": "", "aria_label": null, "name": "sort-by", "type": null, "placeholder": null, "href": null, "role": "combobox", "accessible_name": "Sort by", "css_path": "html > body > main > form > div:nth-of-type(2) > select", "se...
{"strategy": "xpath", "value": "/html/body[1]/main[1]/form[1]/div[2]/select[1]"}
["component redesigned: id 'search-sort-by' removed; classes changed from 'Select_default__IJCet' to 'Input_ghost__YWIBn'; name attribute renamed from 'sort-by' to 'sortBy'", "element wrapped in a new <div> container", "classes changed from 'Input_ghost__YWIBn' to 'app-form__field'"]
["redesign", "wrap", "restyle_target"]
no_match
true
{"strategy": "css", "value": "select[name=\"sortBy\"]"}
{"tag": "select", "id": null, "classes": ["app-form__field"], "testid": null, "text": "", "aria_label": null, "name": "sortBy", "type": null, "placeholder": null, "href": null, "role": "combobox", "accessible_name": "", "css_path": "html > body > main > form > div:nth-of-type(2) > div > select", "section": "form", "lab...
[{"tag": "a", "id": "search-home", "classes": ["Link_base__kpgP6"], "testid": null, "text": "Home", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/home", "role": "link", "accessible_name": "Home", "css_path": "html > body > header > nav > a:nth-of-type(1)", "section": "header", "label_te...
hard
<!DOCTYPE html> <html lang="en"> <head><title>Search | Acme</title></head> <body> <header><nav><a href="/home" id="search-home" class="Link_base__kpgP6">Home</a><a href="/products" class="Link_default__hwKxU">Products</a><a href="/pricing" id="search-pricing" class="Link_default__S9oBt">Pricing</a><a href="/help" class...
<!DOCTYPE html> <html lang="en"> <head><title>Search | Acme</title></head> <body> <header><nav><a href="/home" id="search-home" class="Link_base__kpgP6">Home</a><a href="/products" class="Link_default__hwKxU">Products</a><a href="/pricing" id="search-pricing" class="Link_default__S9oBt">Pricing</a><a href="/help" class...
shl-995c7876bf2b
login
hashed
'Sign in' button
{"tag": "button", "id": null, "classes": ["Button_primary__3s1MO"], "testid": "sign-in-button", "text": "Sign in", "aria_label": "Sign in", "name": null, "type": "submit", "placeholder": null, "href": null, "role": "button", "accessible_name": "Sign in", "css_path": "html > body > main > form > button", "section": "for...
{"strategy": "css_path", "value": "html > body > main > form > button"}
["new <button> inserted before the element"]
["insert_sibling"]
ambiguous
true
{"strategy": "testid", "value": "[data-testid=\"sign-in-button\"]"}
{"tag": "button", "id": null, "classes": ["Button_primary__3s1MO"], "testid": "sign-in-button", "text": "Sign in", "aria_label": "Sign in", "name": null, "type": "submit", "placeholder": null, "href": null, "role": "button", "accessible_name": "Sign in", "css_path": "html > body > main > form > button:nth-of-type(2)", ...
[{"tag": "a", "id": "login-home", "classes": ["Link_base__lmBLZ"], "testid": "home-link", "text": "Home", "aria_label": null, "name": null, "type": null, "placeholder": null, "href": "/home", "role": "link", "accessible_name": "Home", "css_path": "html > body > header > nav > a:nth-of-type(1)", "section": "header", "la...
easy
<!DOCTYPE html> <html lang="en"> <head><title>Login | Acme</title></head> <body> <header><nav><a href="/home" id="login-home" class="Link_base__lmBLZ" data-testid="home-link">Home</a><a href="/products" class="Link_default__Zccro">Products</a><a href="/pricing" class="Link_ghost__94pMV">Pricing</a><a href="/help" id="l...
<!DOCTYPE html> <html lang="en"> <head><title>Login | Acme</title></head> <body> <header><nav><a href="/home" id="login-home" class="Link_base__lmBLZ" data-testid="home-link">Home</a><a href="/products" class="Link_default__Zccro">Products</a><a href="/pricing" class="Link_ghost__94pMV">Pricing</a><a href="/help" id="l...
End of preview. Expand in Data Studio

Self-Healing Locators (v0.1)

UI tests find elements with locators like #login-submit, [data-testid="save"] or /html/body/main/form/button[1]. When the page changes, those locators break. Self-healing tools try to find the element again automatically, but there has been no public dataset to train or measure them on.

This dataset has 6,000 before/after web page pairs. Each one records a target element, the locator a test used for it, what the UI change did to that locator, and a verified healed locator for the new page. It also includes cases where the element was removed, so a healer can learn to report "gone" instead of guessing.

Everything is synthetic and generated by the code in code/, so there is no scraped or private data.

Why the failure type matters

A locator can fail in four ways, and the dataset labels each one:

Status Meaning Share
works Still finds the right element (a healer should leave it alone) 31.8%
no_match Finds nothing; the test fails loudly 49.2%
ambiguous Finds several elements 9.1%
wrong_element Finds exactly one element, but the wrong one; the test keeps running on the wrong control 9.9%

wrong_element is the dangerous one. Positional locators are the worst offenders: after a change, 41% of absolute XPath locators and 30% of CSS nth-of-type paths silently pointed at a different element, compared with under 1% of data-testid locators.

Example

target_description   'Apply coupon' button   (checkout page, utility-class styling)
original_locator     xpath  /html/body[1]/main[1]/form[1]/button[1]
changes              cookie banner inserted at the top of the page;
                     look-alike <button> added in the header;
                     element wrapped in a new <div> container
status               wrong_element   (the XPath now finds "Place order")
healed_locator       testid  [data-testid="apply-coupon-button"]

Fields

Field Type Description
id string Stable example id
page_type string login, signup, checkout, search, settings, product, contact, dashboard
naming_style string semantic, bem, utility (Tailwind-like) or hashed (CSS-modules-like)
target_description string Human description, e.g. 'Sign in' button
target_before JSON What a test could observe about the target before the change (tag, id, classes, test id, text, aria-label, name, role, accessible name, CSS path, section, label text, position)
original_locator JSON {strategy, value} that uniquely found the target in html_before
changes JSON list Plain-English description of each UI change
change_types JSON list Machine-readable change names
original_locator_status string works, no_match, ambiguous or wrong_element
target_present bool False when the element was removed
healed_locator JSON or null {strategy, value} that uniquely finds the target in html_after; null if removed
target_after JSON or null Target features after the change
candidates JSON list Every interactive element in html_after with its features and an is_target flag, ready for ranking models
difficulty string easy, medium or hard
html_before, html_after string Full pages

Locator strategies: testid, id, role (Playwright-style role[name="…"]), text (exact visible text), css, css_path (nth-of-type chain) and xpath (absolute). The healed locator is the most robust unique option, in the order testid > id > role > text > css > css_path > xpath.

JSON columns are stored as strings so every loader handles them:

import json
from datasets import load_dataset

ds = load_dataset("Vijayarv07/self-healing-locators")
row = ds["train"][0]
original = json.loads(row["original_locator"])
candidates = json.loads(row["candidates"])

UI changes covered

Sixteen change types, one to four per example: id renamed or removed, data-testid renamed or removed, target restyled, whole-page design-system migration, component redesign (several attributes at once), visible text changed, field label changed, name changed, element wrapped in a container, tag changed (link to button and back), element moved, sibling inserted, cookie banner inserted, look-alike element added (sometimes with a duplicated test id), and element removed.

Splits and statistics

Split Rows
train 4,800
validation 600
test 600

5,659 examples keep the target and 341 remove it. Difficulty: 1,653 easy, 704 medium, 3,643 hard. Full counts are in stats.json.

Baselines (test split)

Healer Accuracy
Keep the original locator 31.8%
Attribute similarity (code/baseline.py) 89.8%

The similarity healer by slice:

Slice Accuracy
easy 99.4%
medium 83.8%
hard 86.2%
silent wrong_element failures 78.5%
element removed (should answer "gone") 36.4%

The weak spot is knowing when to stop: the heuristic usually "heals" to some other element when the real one is gone. A good healer needs to use context (section, nearby label, position) and to abstain.

How it was built and checked

code/generator.py builds pages, picks a target and an original locator a test might plausibly use, then applies realistic changes. Every label is then re-verified against the published HTML by code/build_dataset.py: the original locator must uniquely find the target before the change, the status is recomputed after it, and the healed locator must uniquely find the target. All 6,000 examples passed. To rebuild or scale up:

pip install -r code/requirements.txt
python code/build_dataset.py --n 6000 --out data
python code/baseline.py --data data

Limitations

  • Pages are small, static and synthetic (about 20–40 interactive elements). Real apps have deeper DOMs, shadow DOM, iframes and dynamic content.
  • Locator matching approximates Playwright semantics; role and text are exact-match versions.
  • Changes are applied independently; real redesigns can be more coordinated.
  • English UI text only.

Planned for later versions: larger and nested layouts, shadow DOM, real-site-inspired templates, and a trained ranking model.

License and citation

CC BY 4.0. Code in code/ is released under the same terms.

@misc{selfhealinglocators2026,
  title  = {Self-Healing Locators: a benchmark for repairing broken UI test locators},
  author = {Venkata Vijaya Kumari D.},
  year   = {2026},
  url    = {https://huggingface.co/datasets/Vijayarv07/self-healing-locators}
}
Downloads last month
-

Models trained or fine-tuned on Vijayarv07/self-healing-locators