peach wait
Grouping verb for explicit synchronization. Use instead of guessing with sleep. Every subverb has a bounded timeout and exits non-zero when it times out, so automations fail loudly rather than silently racing animations or missing nodes.
peach wait <kind> [args]Examples
peach wait ready
peach wait idle
peach wait selector loginButton
peach wait selector feedList --max-ms 3000Subcommands
Run peach wait <verb> --help for the flags and examples of any subcommand.
| Subcommand | Description |
|---|---|
ready [--max-ms <ms>] [--painted] | block until the guest app bundle is loaded and painted |
idle [--max-ms <ms>] [--strict] | block until animations + rAF + layout are settled |
selector <testid-or-text> [--max-ms <ms>] [--gone] [--structural] | block until a testID or text appears (or, with --gone, disappears) |
event <kind> [--max-ms <ms>] | block until the next timeline event of a given kind |