# Workaround for using too much Sleep

**URL:** <https://forum.robotframework.org/t/workaround-for-using-too-much-sleep/3613>\
**Category:** Appium\
**Created:** [13 April 2022 18:24 UTC](https://forum.robotframework.org/t/workaround-for-using-too-much-sleep/3613 "2022-04-13T18:24:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vschutt](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@vschutt](https://forum.robotframework.org/u/vschutt)\
**Post date:** [13 April 2022 18:24 UTC](https://forum.robotframework.org/t/workaround-for-using-too-much-sleep/3613/1 "2022-04-13T18:24:43Z")

</div>

So, I need to set a global wait activity to my tests using AppiumLibrary, a delay between each Appium command, just like SeleniumLibrary’s ‘Set Selenium Speed’, which ‘Sets the delay that is waited after each Selenium command’. Is there something like this in AppiumLibrary, or any suggestion to emulate this behavior?

Need this to get rid of the dozens of Sleeps I’m using to prevent the test from going too fast and make Robot unable to find things on the screen in time.

---

<div class="post-metadata">

**Author:** ![janipalsamaki](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/janipalsamaki/32/154_2.png) [@janipalsamaki](https://forum.robotframework.org/u/janipalsamaki)\
**Post date:** [14 April 2022 06:04 UTC](https://forum.robotframework.org/t/workaround-for-using-too-much-sleep/3613/2 "2022-04-14T06:04:42Z")

</div>

> [@vschutt](#):
>
> AppiumLibrary

Maybe a combination of “Wait…” keywords and [Set Appium Timeout](https://serhatbolsu.github.io/robotframework-appiumlibrary/AppiumLibrary.html#Set%20Appium%20Timeout)?

> There are several Wait … keywords that take timeout as an argument. All of these timeout arguments are optional. The timeout used by all of them can be set globally using this keyword.

---

<div class="post-metadata">

**Author:** ![vschutt](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@vschutt](https://forum.robotframework.org/u/vschutt)\
**Post date:** [14 April 2022 13:35 UTC](https://forum.robotframework.org/t/workaround-for-using-too-much-sleep/3613/3 "2022-04-14T13:35:24Z")

</div>

Will try this today, thanks for the reply!

---

<div class="post-metadata">

**Author:** ![bagginstyrone](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/bagginstyrone/32/734_2.png) [@bagginstyrone](https://forum.robotframework.org/u/bagginstyrone)\
**Post date:** [16 May 2022 10:31 UTC](https://forum.robotframework.org/t/workaround-for-using-too-much-sleep/3613/4 "2022-05-16T10:31:42Z")

</div>

@janipalsamaki .Thanks for giving this clear answer. I am gonna try it and will let you know about the results.
