Skip to content
YosoiDocs

yosoi.locators

yosoi.locators

Pydantic locator authoring; Rust compiles and executes every plan.

Source: python/yosoi/locators.py:1

Name Summary
AccessibilityStateAtom One supported boolean accessibility-state query operand.
Locator Query intent paired with an explicit supported projection.
NamespaceBinding Query-local XML namespace binding independent of source prefixes.
Output Named projected evidence declaration for a compiled locate plan.
Plan Compiled immutable outputs and repeated-region declarations.
Query Immutable locator intent compiled and checked by the Rust SDK.
QueryAtom Closed portable query meaning, separate from Python authoring syntax.
QuerySpec Portable Rust query semantics with validated result shape.
Region One authored repeated-region query and its lineage identity.
Name Summary
accessibility_state Declare a boolean accessibility-state query without browser I/O.
accessibility_text Author accessibility node text query intent without document I/O.
accessible_name Author accessible node name query intent without document I/O.
css Author CSS tree-node query intent without document I/O.
json_path Author supported Rust JSONPath value query intent without document I/O.
json_pointer Author JSON Pointer value query intent without document I/O.
output Name one explicit query and projection declaration.
regex Author decoded-text regular-expression range query intent without document I/O.
role Author accessibility role query intent without document I/O.
text_literal Author decoded-text literal range query intent without document I/O.
tree_text_contains Author tree descendant-text substring query intent without document I/O.
xpath Author XPath tree-node query intent without document I/O.
Name Summary
AccessibilityStateName Supported boolean accessibility snapshot state names: expanded and focused. These queries do not mutate a live browser.
JsonQuerySyntaxError Exact Rust JSON-query syntax classifications, separating invalid pointers, invalid paths, and unsupported path features.
NamedOutput Alias for an Output declaration pairing an authored identity with its query and projection. Output identity uniqueness is checked when a Plan is compiled.
OutputPlan Alias for the query-plus-projection Locator declaration. A compiled collection of named outputs is represented by Plan instead.
ProjectionKind Projection vocabulary preserving text, attributes, JSON values, node references, accessible names, and named captures. Query/projection compatibility is checked by Rust.
QueryKind Authored query vocabularies for trees, JSON, accessibility snapshots, and decoded text. Document capabilities and execution limits are checked separately.
QueryResultShape Portable result capabilities: tree nodes, JSON values, accessibility nodes, or text ranges. Shape is distinct from match count or evidence completeness.
RegionPlan Alias for a repeated-region declaration carrying a root query and lineage identity. Nested repeated regions are unsupported.