skrypton-api / com.waicool20.skrypton.sikulix / SKryptonRegion / wait

wait

open fun <PSI : Any> wait(target: PSI): SKryptonMatch

Overrides ISikuliRegion.wait

Waits for the target to appear until the AutoWaitTimeout value is exceeded.

Parameters

PSI - Pattern, String or Image.

target - The target to search for.

Exceptions

FindFailed - If the find operation finally failed.

Return
The found match.

open fun <PSI : Any> wait(target: PSI, timeout: Double): SKryptonMatch

Overrides ISikuliRegion.wait

Waits for the target to appear or timeout (in second) is passed.

Parameters

PSI - Pattern, String or Image.

target - The target to search for.

timeout - Timeout in seconds.

Exceptions

FindFailed - If the find operation finally failed.

Return
The found match.