# What Is Selector Brittleness?

## Definition

Selector brittleness is the tendency of an element locator to fail after a UI implementation change even when the intended user behavior remains the same.

## Why it matters

A locator tied to DOM position or a styling class may stop working after a layout refactor. More meaningful targeting can reduce that maintenance, but any target must still distinguish the intended control from similar elements.

## How teams handle it today

Teams prefer accessible roles, labels and deliberate test identifiers, and keep important outcome assertions independent of locator implementation. Shared helpers can make necessary updates easier to review.

## How Zerocheck approaches it

Zerocheck writes actions as descriptions such as “Click Save”. The browser agent uses the page to find the intended control, and a remembered target is reused only while it's still the same control. A replacement is kept only after the whole test passes.

Related terms: [Self-Healing Test](https://tryzerocheck.com/glossary/self-healing-test/), [Test Maintenance](https://tryzerocheck.com/glossary/test-maintenance/), [E2E Testing](https://tryzerocheck.com/glossary/e2e-testing/)


---
Canonical: https://tryzerocheck.com/glossary/selector-brittleness/
Updated: 2026-11-01
