Re: [Sikuli-driver] [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. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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 Thanigai posted a new comment: One more query shall we Pass a Text/string to identify the image in screen? in Find() or exists() method -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [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. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp