sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50511
Re: [Question #678420]: if expected image not exists in region/screen then scroll down the list box and see if expected image is present.
Question #678420 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678420
Status: Open => Solved
Thanigai confirmed that the question is solved:
Using do-while-loop i found solution for my problem.
reg = Region(532,225,852,628)
reg.highlight(5)
x = 0
loop do
if(reg.exists(Pattern("1549894425864.png").exact()))
reg.click(Pattern("Next_Button.png").exact())
x = 1
else if(reg.exists(Pattern("1549894321973.png").exact()))
reg.click(exists(Pattern("1549894321973.png").exact()))
reg.click(Pattern("Next_Button.png").exact())
x = 2
else
reg.click("DownArrow.png")
reg.click("DownArrow.png")
reg.click("DownArrow.png")
reg.click("DownArrow.png")
reg.click("DownArrow.png")
reg.click("DownArrow.png")
reg.click("DownArrow.png")
reg.click("DownArrow.png")
sleep 2
end
end
break if ((x == 1) or (x == 2))
end
puts "HMSS DB is Selected"
sleep 5
end
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.