# stagehand-python@4.5.0a0.dev1734: refactor : define internal locator chain schema ( 3535)

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

## Human Summary
Browserbase Stagehand releases published stagehand-python@4.5.0a0.dev1734: refactor : define internal locator chain schema ( 3535). why locator.locator() chaining/resolution needs to preserve the order of queries and positions: .card - nth(1) - button searches a different scope from .card - button - nth(1) . this PR defines that internal representation…

## Agent Summary
Treat stagehand-python@4.5.0a0.dev1734: refactor : define internal locator chain schema ( 3535) 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.dev1734: refactor : define internal locator chain schema ( 3535). 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 locator.locator() chaining/resolution needs to preserve the order of queries and positions: .card - nth(1) - button searches a different scope from .card - button - nth(1) . this PR defines that internal representation before exposing a public API what changed added canonical schemas and inferred types for CSS, XPath, and legacy text queries, explicit frame hops, positional steps, and ordered chains every chain must start by finding elements before selecting a match by index derived the existing selector engine's query types from the canonical types, preserving its kind discriminator and parsing behavior note: this PR defines the format only; it does not execute chains or add public methods. RPC inputs, result shapes, and generated protocol/Python artifacts are unchanged test plan added locator-chain.test-d.ts , locator-chain.test.ts , & shared chain fixtures covering: Type-level…

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