stagehand-python@4.5.0a0.dev1742: feat : expose getByRole() & get by role() ( 3552)
Browserbase Stagehand releases published stagehand-python@4.5.0a0.dev1742: feat : expose getByRole() & get by role() ( 3552). why this PR adds public getByRole() / get by role() on the page & locator objects. await page . getByRole ( "button" , { name : "Save" , exact : true } ) . click ( ) ; await page . locator ( "iframe checkout" ) . getByRole ( "button"…
Why this signal matters
Browserbase Stagehand releases published stagehand-python@4.5.0a0.dev1742: feat : expose getByRole() & get by role() ( 3552). This automated release-watch entry was generated from the project's official GitHub release feed and is kept separate from human-reviewed editorial analysis. Release notes: why this PR adds public getByRole() / get by role() on the page & locator objects. await page . getByRole ( "button" , { name : "Save" , exact : true } ) . click ( ) ; await page . locator ( "iframe checkout" ) . getByRole ( "button" , { name : "Pay" } ) . click ( ) ; what changed added typed role methods in both sdks, with accessible-name matching, exact matching, & supported state filters. exported AriaRole in both languages & GetByRoleOptions in typescript. construct lazy locator chains & validate inputs before sending a request. preserve scopes, positions, independent branches, & following css/text/role queries. expose existing role resolution through ordinary locator operations, including actions, counts, & screenshot masks. iframe entry remains explicit through chaining. test plan added & extended tests covering: public role types, method signatures, options, & locator return…
Actionable summary
Treat stagehand-python@4.5.0a0.dev1742: feat : expose getByRole() & get by role() ( 3552) as an official release signal. Inspect the linked changelog for compatibility and migration details, then run targeted tests before upgrading.
- Agent usefulness
- 72/100
- Confidence
- 96%
- Canonical data
- JSON + Markdown
What builders should check
- Review the official Browserbase Stagehand releases release notes before upgrading.
- Check compatibility, migration, and security notes against your current agent stack.
- Run focused regression tests before production rollout.