← Back to team overview

sikuli-driver team mailing list archive

[Question #291495]: If image not found start with new number

 

New question #291495 on Sikuli:
https://answers.launchpad.net/sikuli/+question/291495

If image (1460481116500-3.png) not found after popup program should start  with new search given in myListFixed.
What should i do in that case. I am new to sikulli....


myListFixed = ("8185018*","8185017*","8185015G002*","8185015G001*")
for entry in myListFixed:

    click("1460480458427-1.png")
    wait(2)
    click("1460483907030.png")
    wait(1)
    type(Key.TAB)
    type(Key.TAB)
    type(Key.TAB)
    wait(1)
    type( entry + Key.ENTER)
    wait(2)
    while not exists("1460481116500-3.png"):
        popup("Check Maitrey something wrong")
        
    click("1460481352717-1.png")
    wait(3)
    hover("1460552942857.png")
    click("1460552942857-1.png")
    hover("1460553160240-3.png")
    wait(1)
    click("1460553160240-4.png")
    hover("1460481772726-2.png")
    click("1460481781269-1.png")
    wait(9)
    wait("1460483715075-1.png",150)
    click("1460483810493-4.png")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.