Sikulix wait until image not appear anymore i.e page still loading

117 views Asked by At

I am a new Sikulix user. I have learned how to wait until image appears on screen. But the issue is how to wait until an image is not visible any more. In below code when "nextbutton.jpg" is clicked a loading message appears "progress..." I want Sikulix to only progress when this message is not visible on the screen.

import time

while True:
    time.sleep(1)
    rightClick("1666114968076.png")
    wait("rightclick2.jpg")
    click("savecsv2.jpg")
    wait("nameandsavefile.jpg")
    click("clickok.jpg")
    click("nextbutton.jpg")
    wait(1)
1

There are 1 answers

0
Eugene S On

You can do something like this (pseudocode):

while(True):

 if exists("in progress...:):
     wait(waitTime)

 else:
     break