[ Documentation ]
rnx wait

rnx wait

rnx 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.

terminal
rnx wait <kind> [args]

Examples

terminal
rnx wait ready
rnx wait idle
rnx wait selector loginButton
rnx wait selector feedList --max-ms 3000

Subcommands

Run rnx wait <verb> --help for the flags and examples of any subcommand.

subcommanddescription
ready [--max-ms <ms>]block until the guest app bundle is loaded and painted
idle [--max-ms <ms>] [--strict]block until animations + rAF + layout are settled
selector <testid> [--max-ms <ms>] [--gone] [--structural]block until a testID appears (or, with —gone, disappears)
event <kind> [--max-ms <ms>]block until the next timeline event of a given kind