How to Insert a Pause With Dogtail on Python

Dogtail is simply an automation framework that is written and executed just like any other Python module, meaning that inserting a pause into such a module requires just using Python's integrated pause functions. In particular, you would use the "sleep" method in the "time" module to force your application to halt for a set period of time.

Instructions

    • 1

      Import the "time" module:

      import time

    • 2

      Call the "sleep" method as follows:

      time.sleep(x)

    • 3

      Replace the "x" with a number corresponding to how many seconds you would like the application to pause. Note that you can use floating point numbers and integers. For instance, specify half a second by using .5.

Related Searches:

References

Comments

Related Ads

Featured