Optics is open-source test automation for Android, iOS, Android TV, Samsung Tizen, LG webOS and the web. It's a Python package (optics-framework, Apache-2.0) that runs on your machine or in CI, with no hosted service and no account.
A test suite is plain CSV or YAML: test cases, modules (one keyword per row) and elements. It lives in your repo, so changing a test is a pull request.
You can create a suite four ways: write it by hand (or use the same keywords from pytest or Robot Framework), record it step by step with optics live, describe the flow in plain English, or let an AI agent such as Claude Code or Cursor drive the device over the built-in MCP server and write the suite files.
Each element can have several locators, tried cheapest first: XPath, then visible text, then OCR on a screenshot, then image matching. A renamed resource ID no longer fails the run, and the log shows which locator matched.
Runs write JUnit XML and annotated screenshots, and can fail when a crash dialog or "Session expired" shows on screen even if no step checked for it. For locked-down devices there's a Bluetooth (BLE) driver: a USB HID dongle acts as mouse and keyboard while a camera watches the screen.
No comments or reviews, maybe you want to be first?