Skip to content

Commit

Permalink
Explain Sleep's default value is seconds (#4479)
Browse files Browse the repository at this point in the history
  • Loading branch information
F3licity committed Sep 27, 2022
1 parent a5659a4 commit d771d36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/robot/libraries/BuiltIn.py
Original file line number Diff line number Diff line change
Expand Up @@ -2891,7 +2891,9 @@ def sleep(self, time_, reason=None):
``time`` may be either a number or a time string. Time strings are in
a format such as ``1 day 2 hours 3 minutes 4 seconds 5milliseconds`` or
``1d 2h 3m 4s 5ms``, and they are fully explained in an appendix of
Robot Framework User Guide. Optional `reason` can be used to explain why
Robot Framework User Guide. Providing a value without specifying minutes
or seconds, defaults to seconds.
Optional `reason` can be used to explain why
sleeping is necessary. Both the time slept and the reason are logged.
Examples:
Expand Down

0 comments on commit d771d36

Please sign in to comment.