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: role locators now use getByRole() when wrapped in Locator object
handleRoleLocator used isRoleLocatorObject() which rejected Locator-wrapped
role objects (checking !locator.type). This caused findClickable to fall
through to a CSS [role="button"] selector, losing text/exact filters.
Now uses new Locator(locator).isRole() to detect role locators regardless
of whether they arrive as raw objects or Locator instances, ensuring
Playwright's native getByRole() API is always used.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments