python - Time.sleep() and win32api.Sleep() cannot work when convert .py file to .exe file -


i'm writing script using selenium webdriver python. when run program in ide script run good, when convert .py file .exe , run exe file in window delay function not working. maybe passed delay function. used both time.sleep() , win32api.sleep() of them not display when running exe file. here example:

import time import win32api  time.sleep(10) win32api.sleep(1000) 

could know this? thank you! i'm using python 3.6, spyder ide. used cx_freeze convert py file exe file.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -