waitHas

suspend fun waitHas(template: ITemplate, timeout: Millis = -1): R?

Waits until the given template shows up on screen. This is the suspending version, use waitHasBlocking if blocking operation is needed. Inverse of waitDoesntHave

Return

Region that matched with template or null if the find operation timed out

Parameters

template

Template to use for matching

timeout

Find operation will end after timeout millis, timeout is disabled if the value is zero or a non-positive value