Skip to content

Commit 286ebe1

Browse files
committed
Edit for clarity
1 parent 169f593 commit 286ebe1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

api-reference/commands/sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@
66
- sleep: 100 # Sleeps for 100ms (default unit is ms)
77
- sleep: 1000ms # Sleeps for 1000ms
88
- sleep: 1s # Sleeps for 1 second
9+
- sleep:
10+
time: 2000
11+
label: Pause for two seconds
912
```
13+
14+
Note: This command shouldn't be necessary in most situations. Use [assertVisible](./assertvisible.md) or [extendedWaitUntil](./extendedwaituntil.md) to wait for something to appear. This command should be used in situations where an external system is performing a task that you cannot see the effect of (e.g. server-side transaction processing), or a splash animation that cannot be represented in the Maestro hierarchy that needs to be awaited.

api-reference/commands/waitforanimationtoend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Can have an optional timeout (in milliseconds) after which, if the animation is
1313
timeout: 5000
1414
```
1515
16-
If you want to add a fixed delay, see [sleep](./sleep.md).
16+
If you're looking to add a fixed delay, use [sleep](./sleep.md) instead.

0 commit comments

Comments
 (0)