INNER CODE UNIT · Python
query
browser-use/macos-harness · src/macos_harness/controls.py:59
def query(
self,
*,
app: str | None = None,
element_index: int | None = None,
search_key: str = "AXAnyTypeSearchKey",
text: str | None = None,
visible_only: bool = True,
limit: int = 20,
direction: str = "next",
immediate_descendants_only: bool = False,
attributes: Iterable[str] = _COMPACT_ATTRIBUTES,
include_actions: bool = False,
max_nodes: int = 500,
) -> list[dict[str, Any]]:
return self._host.ax_search(
element_index=element_index,
app=app,