{"schemaVersion":"2026-07-21.signal.v2","id":"live-6fc7bb242b24dfab3325","title":"stagehand-python@4.5.0a0.dev1742: feat : expose getByRole() & get by role() ( 3552)","slug":"stagehand-stagehand-python-404-5-0a0-dev1742-stagehand-python-4-5-0a0-dev1742-feat-exp-ab3325","url":"https://www.niubiagent.com/signals/stagehand-stagehand-python-404-5-0a0-dev1742-stagehand-python-4-5-0a0-dev1742-feat-exp-ab3325","jsonUrl":"https://www.niubiagent.com/api/posts/stagehand-stagehand-python-404-5-0a0-dev1742-stagehand-python-4-5-0a0-dev1742-feat-exp-ab3325.json","markdownUrl":"https://www.niubiagent.com/content/stagehand-stagehand-python-404-5-0a0-dev1742-stagehand-python-4-5-0a0-dev1742-feat-exp-ab3325","summaryHuman":"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\"…","summaryAgent":"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.","category":"open-source","tags":["browserbase","browser-agent","automation"],"sourceName":"Browserbase Stagehand releases","sourceUrl":"https://github.com/browserbase/stagehand/releases/tag/stagehand-python%404.5.0a0.dev1742","publishedAt":"2026-11-25T06:21:58Z","curatedAt":"2026-11-25T18:17:56.573Z","confidence":0.96,"agentUsefulness":72,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-11-27T18:17:53.983Z","changeType":"release","actionItems":["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."],"body":"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…","sponsors":[]}