INNER CODE UNIT · Python
at
browser-use/macos-harness · src/macos_harness/controls.py:28
def at(
self,
x: float,
y: float,
*,
app: str | None = None,
coordinate_space: str = "screenshot",
attributes: Iterable[str] = _COMPACT_ATTRIBUTES,
include_actions: bool = True,
) -> dict[str, Any]:
self._host._ensure_accessibility()
point = self._host._screen_point(x, y, coordinate_space)
pid = self._host._pid(app)
root = (
self._host._application_element(pid)
if pid is not None
else AS.AXUIElementCreateSystemWide()
)