Await Condition Steps¶
This Step waits for a condition such as network changes.
await <condition Expression> or timeout after <timeout Number> <units TimeUnit>
condition - The expected state
timeout - The maximum amount of time to wait for the condition
units - May be one of
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