Loop Click on images

Asked by Jorge

Attempt to create an loop to click on images tried several examples this one works but not in loop.

setFindFailedResponse(SKIP)
findAll("1480812311582.png") # expected several of same or none
mm = SCREEN.getLastMatches()
if mm is not None:
    while mm.hasNext(): #after click image disapear
        click(mm.next())

#no more of images above click next page
click("1480851309946.png") #next page
wait(2)

script stop should continue

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Lunyov (lunyov-av) said :
#1

On last nightly 1.1.1 works well. It could depend on image similarity setting also.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

for loops see faq 1437

Can you help with this problem?

Provide an answer of your own, or ask Jorge for more information if necessary.

To post a message you must log in.