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"…
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
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…
可执行摘要
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 实用度
- 72/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- 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.