You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(locator): restrict loose field branches to field-like elements
`Locator.field.labelContains` ended with three branches matching `.//*`
with no tag restriction, so any container carrying `@aria-label`,
`@title` or `@aria-labelledby` was returned by `findFields`.
`xpathLocator.combine` joins branches with `|`, and a union is evaluated
in document order, so a labelled wrapper always preceded the control it
wraps. A Base UI slider (`div[role=group][aria-labelledby]` around
`input[type=range]` with the same `aria-labelledby`) resolved to the
`div`, and `selectOption` on a `ul[role=tablist][aria-label]` reported
"Element is not a <select> element" instead of a clean not-found.
Scope the three branches to a field tag or an editable ARIA role, which
keeps every custom `role=combobox` / `role=textbox` / `role=listbox`
widget reachable by accessible name while dropping plain containers.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TcwzSXPnfaig8nBZD2Vxfi
0 commit comments