Guide¶
The guide walks through using Spectre end-to-end:
- Installation — how to consume Spectre while it's pre-release.
- Getting started — write your first test against a Compose Desktop window.
- The automator — the mental model: surfaces, the semantics tree, queries vs. interactions, and why there's no auto-wait.
- Finding nodes — selector reference.
- Driving input — clicks, swipes, scrolling, typing, screenshots.
- Synchronization — wait helpers and the EDT rule.
- JUnit integration —
ComposeAutomatorExtension(JUnit 5) andComposeAutomatorRule(JUnit 4). - Recording — region and window-targeted screen capture.
- Cross-JVM access — driving a UI hosted in another JVM.
- IntelliJ-hosted Compose — Jewel-on-IntelliJ tool windows.
- Troubleshooting — platform-specific gotchas.
If you're new to Spectre, start with Installation and Getting started, then read The automator before dipping into the per-topic pages.