352
edits
| Line 120: | Line 120: | ||
time.sleep(seconds) | time.sleep(seconds) | ||
</source> | </source> | ||
However, sleep() calls should be used very sparingly, only when there is no other way to delay the action of Marionette. Using sleep() when Wait() can accomplish the same thing would be bad for following reasons: | However, sleep() calls should be used very sparingly, only when there is no other way to delay the action of Marionette. Using sleep() when Wait() can accomplish the same thing would be bad for following reasons: | ||
* Sleep() does not care about the UI changes in app. If you're using sleep() to just 'wait enough', you'll run into problems when the app behavior changes and requires more/less time to wait. | * Sleep() does not care about the UI changes in app. If you're using sleep() to just 'wait enough', you'll run into problems when the app behavior changes and requires more/less time to wait. | ||
edits