I am working on my python file and automating an installation of various applications. I have to wait till my installation is completed and then click on few buttons and till now my program is working fine and I am using time.sleep()
. But I wanted to use wait/waitNot, so that it is not time dependent.
For example: I have pressed button "Install" and it took 20 seconds for my installation to complete. I have used time.sleep(20)
but this is not the same for installation on all PCs. Therefore I wish to use wait
or wait_not
.
I have used app.wait('enabled')
, but this didn't help. Help me out on this.
Thanks in advance!
This is the docs chapter: Waiting for Long Operations. Please be careful which object has which methods. .wait('visible', timeout=20)
is a method of WindowSpecification. Maybe read the Getting Started Guide first if you haven't read it yet.