# stagehand-python@4.5.0a0.dev1732: refactor : centralize selector parsing ( 3529)

Category: open-source
Published: 2026-11-23T19:11:18Z
Source: [Browserbase Stagehand releases](https://github.com/browserbase/stagehand/releases/tag/stagehand-python%404.5.0a0.dev1732)
Agent usefulness: 72/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-11-24T12:17:57.732Z
Tags: browserbase, browser-agent, automation

## Human Summary
Browserbase Stagehand releases published stagehand-python@4.5.0a0.dev1732: refactor : centralize selector parsing ( 3529). why selector interpretation was spread across the locator resolver, iframe routing, & snapshot scoping, with duplicated XPath tokenization. this PR centralizes that logic so future query engines can build on one internal boundary while…

## Agent Summary
Treat stagehand-python@4.5.0a0.dev1732: refactor : centralize selector parsing ( 3529) as an official release signal. Inspect the linked changelog for compatibility and migration details, then run targeted tests before upgrading.

## Body
Browserbase Stagehand releases published stagehand-python@4.5.0a0.dev1732: refactor : centralize selector parsing ( 3529). 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 selector interpretation was spread across the locator resolver, iframe routing, & snapshot scoping, with duplicated XPath tokenization. this PR centralizes that logic so future query engines can build on one internal boundary while preserving existing selector behavior what changed moved CSS, XPath, & text= interpretation and iframe-hop planning into selectorQuery.ts , a dependency-free module with typed internal queries updated existing resolver entry points to delegate to it, and shared XPath tokenization with snapshot scoping while retaining their different frame-entry rules. added shared characterization fixtures for prefixes, quoting, iframe hops, generated XPath, and positional selection. tests preserve existing quirks, including case-sensitive XPath frame routing & splitting inside quotes test plan added selectorNormalization.test.ts & selectorQuery.test.ts , using shared…

## Recommended actions
- 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.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.