Can I add wait and sleep?
  • 26 Dec 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Can I add wait and sleep?

  • Dark
    Light

It is possible to sleep for a certain period of time by adding a [Sleep Step].

However, Autify automatically waits for a certain period of time until an element appears and the operation or verification set in that step becomes possible, so it is almost never necessary to set sleep with the intention of adjusting the display timing of the element.

There are two main cases where it is better to sleep using the [Sleep Step]:

  1. If page loading takes a long time
  2. When an unexplained failure occurs immediately after page transition

Screen Shot 2022-12-26 at 14.15.39 copy.png

More specifically, [If page loading takes a long time] means:

  • It takes a long time to load, and it times out while running tests
  • It does not time out, but the loading widget blocks the operation so it does not work properly
  • It is necessary to wait for backend processing that cannot be judged from the screen

[When an unexplained failure occurs immediately after page transition] refers to failures such as the following. These failures tend to occur when redirects occur on page transitions.

  • It fails at the [JS Step] immediately after the page transition
  • It fails in the verification of URL and title immediately after page transition

Related article

How many seconds does the [Sleep Step] support?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.