# 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 authors actions as descriptions such as “Click Save”. The browser agent uses page context to resolve the intended control. Stored targets are checked for semantic identity; a replacement is saved as healed only after a complete pass with independent evidence.

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-09-14
