Skip to content
YosoiDocs

QueryAtom

yosoi.locators.QueryAtom

class QueryAtom(ImmutableModel):

Closed portable query meaning, separate from Python authoring syntax.

Attributes: kind: CSS/XPath, JSON, accessibility, or decoded-text operation label. value: Authored expression text, or a typed accessibility-state operand.

Source: python/yosoi/locators.py:96

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

kind: Literal['css', 'x_path', 'tree_text_contains', 'json_pointer', 'json_path', 'accessibility_role', 'accessible_name', 'accessibility_text', 'accessibility_state', 'text_literal', 'text_regex']
value: str | AccessibilityStateAtom
@property
def expression(self) -> str:

Return expression text, or the state name for a boolean state query.

Source: python/yosoi/locators.py:120