Skip to content
/ .. /
Await Condition










Await Condition

The Await Condition Step waits for a condition such as network changes.

Syntax

1
await <condition Expression> or timeout after <timeout Number> <units TimeUnit>
Parameters

  • condition - The expected state

  • timeout - The maximum amount of time to wait for the condition

  • units - May be one of milliseconds, second, seconds, minute, minutes, hour or hours

Example

1
2
3
4
// Awaits the condition that the network changes to 4G from a different network
And await network == "4G" or timeout after 30 seconds
// Awaits that a phone not yet registered to a network will register with it
And await operator == "operator1" or timeout after 40 seconds