INNER CODE UNIT · Python

points

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

            points = [(left + width - 58, top + height - 38)]
            points.extend(
                (x, y)
                for y in range(int(top + height - 16), int(top + height - 96), -16)
                for x in range(int(left + width - 16), int(left), -16)
            )
            for x, y in points:
                error, element = AS.AXUIElementCopyElementAtPosition(root, x, y, None)
                if error != 0 or element is None:
                    continue
                role_error, role = AS.AXUIElementCopyAttributeValue(
                    element, "AXRole", None
                )
                description_error, description = AS.AXUIElementCopyAttributeValue(
                    element, "AXDescription", None
                )
                if (
                    role_error == 0

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…