INNER CODE UNIT · Python

__init__

browser-use/macos-harness · src/macos_harness/controls.py:25

    def __init__(self, host: MacOS) -> None:
        self._host = host

    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)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…