← Back to team overview

sikuli-driver team mailing list archive

[Question #678420]: if expected image not exists in region/screen then scroll down the list box and see if expected image is present.

 

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

need to iterate through a list box and find the expected image and select the expected image and proceed further. 

i have tried without defining a region and had positive scenario like having the expected image without scrolling the list box,

if (exists(Pattern("1549626060889.png").exact()))
click(Pattern("1549626060889.png").exact())
click("1549626309487.png")
else if (exists(Pattern("1549627715270.png").exact()))
click("1549627903114.png")
end
end

Please suggest how to proceed with defining a region and find the content . if not present then i need to scroll down the list box and once again do the same operation.

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