Question #678997 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678997

    Status: Open => Answered

RaiMan proposed the following answer:
click("ChangePageButton.png")
button = getLastMatch()
if not exists("FirstElementOfNewPage.png",30): # must this really be 30 
seconds????
        click(button) # will click the match from the first click, no 
additional search
        if not exists("FirstElementOfNewPage.png",30):
            pass # here you might do some error actions

--- mouseMove(100, 100) #this is present to move the mouse cursor from the 
button and allow a better finding of the button for second try
generally not necessary: the mouse cursor is not visible on the internal 
screenshot used for image search

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to