Pause the execution of the script for a specified duration.
wait
command pauses the execution of the script for a specified number of milliseconds before continuing. This is useful for adding delays between commands or waiting for certain conditions to stabilize.
Argument | Type | Description |
---|---|---|
timeout | number | The duration in milliseconds to wait. |
wait
command to handle timing issues, such as waiting for animations to complete or elements to load.wait
command can slow down test execution. Use it only when necessary.wait
command is ideal for introducing controlled pauses in your test scripts.