Skip to content

Conversation

@ctate
Copy link
Collaborator

@ctate ctate commented Feb 10, 2026

Summary

  • The --exact flag on find role, find label, and find placeholder was accepted by the CLI but silently dropped by the server. The Zod validation schema, TypeScript types, and action handlers all lacked the exact field, so it was stripped before reaching Playwright's getByRole, getByLabel, and getByPlaceholder calls.
  • Added exact to the schema, types, and handler for all three locators so the flag is forwarded to Playwright as intended.
  • Added tests confirming exact: true survives protocol parsing for getbyrole, getbylabel, and getbyplaceholder.

Fixes #402

…der locators (#402)

Summary

- The `--exact` flag on `find role`, `find label`, and `find placeholder` was accepted by the CLI but silently dropped by the server. The Zod validation schema, TypeScript types, and action handlers all lacked the `exact` field, so it was stripped before reaching Playwright's `getByRole`, `getByLabel`, and `getByPlaceholder` calls.
- Added `exact` to the schema, types, and handler for all three locators so the flag is forwarded to Playwright as intended.
- Added tests confirming `exact: true` survives protocol parsing for `getbyrole`, `getbylabel`, and `getbyplaceholder`.

Fixes #402
@vercel
Copy link
Contributor

vercel bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-browser Ready Ready Preview, Comment Feb 10, 2026 3:02pm

@ctate ctate merged commit cd4473a into main Feb 10, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--exact flag not forwarded to Playwright on find role

1 participant