Re: [Sikuli-driver] [Question #691302]: [HowTo] handling findFailed
Question #691302 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691302 Status: Open => Answered masuo proposed the following answer: findAny() is usefull for your case. https://sikulix-2014.readthedocs.io/en/latest/region.html#Region.findAny -- 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 #691302]: [HowTo] handling findFailed
Question #691302 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691302 Description changed to: Hello there ... am using Sikuli for pretty basics task, am not a developer so will be great if any of you give me a hand to solve my issue. So let me explain what am trying to do ... I have 2 images, if any of them are at the region, then do something "except crashing :( " I found how to handle it with "exists()" but the problem is that the two images are very very simular with other images so, sometimes it does well, sometimes not, the best is using .. find() but it stop the entire script if does not find anything. my code is like this... myRegion = Region(1186,447,173,63) if myRegion.find(image1.png) or myRegion.find(image2.png): print("Found") else: print("not found") continue with the script . I tried to handle it with this... try: myRegion = Region(1186,447,173,63) if myRegion.find(image1.png) or myRegion.find(image2.png): print("Found") else: print("not found") except findFailed: pass But it cotinues crashing I know that Sikuli is well documented but i couldnt understand how fix it, so ... could someone please give me an example how to handle findFailed without stop my script? I know that i can use all these but i dont know how... "setFindFailedResponse(SKIP), setThrowException(False), a function to handle it, etc." Note: am using python, Sikuli IDE on Linux Mint 19.03 Thanks, regards! -- 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 #691302]: [HowTo] handling findFailed
New question #691302 on Sikuli: https://answers.launchpad.net/sikuli/+question/691302 Hello there ... am using Sikuli for pretty basics task, am not a developer so will be great if any of you give me a hand to solve my issue. So let me explain what am trying to do ... I have 2 images, if any of them are at the region, then do something "except crashing :( " I found how to handle it with "exists()" but the problem is that the two images are very very simular with other images so, sometimes it does well, sometimes not, the best is using .. find() but it stop the entire script if does not find anything. my code is like this... myRegion = Region(1186,447,173,63) if myRegion.find(image1.png) or myRegion.find(image2.png): print("Found") else: print("not found") continue with the script . I tried to handle it with this... try: myRegion = Region(1186,447,173,63) if myRegion.find(image1.png) or myRegion.find(image2.png): print("Found") else: print("not found") except findFailed: pass But it cotinues crashing I know that Sikuli is well documented but i couldnt understand how fix it, so ... could someone please give me an example how to handle findFailed without stop my script? I know that i can use all these but i dont know how... "setFindFailedResponse(SKIP), setThrowException(False), a function to handle it, etc." Thanks! -- 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 #691299]: How to omit \sikulixlibs\mac\libs64\ from exported jar
New question #691299 on Sikuli: https://answers.launchpad.net/sikuli/+question/691299 Hi , I'm using Sikuli only on Windows OS. I want to know if there is any use of dll files present under directory : \sikulixlibs\mac\libs64\ My target is to restrict my Jar file size which was 39 MB before Sikuli and it jumped to 82 MB after excluding few libraries. Kindly guide me to use a modified form of v2.0.4 so that only Windows related components are exported. POM file -- com.sikulix sikulixapi 2.0.4 org.slf4j slf4j-nop net.sourceforge.tess4j tess4j -- 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 #691293]: Fault tolerance for target images
Question #691293 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691293 Status: Answered => Open robin gupta is still having a problem: Thanks for the prompt response RaiMan. I am believing that I would have to do something like one of the below: 1. click(Pattern("1530562928013.png").similar(0.96)) 2. Match multiple images from resolution/OS/Browsers of the target systems. Like : if Reg.exists("12.png",0) or Reg.exists("13.png",0) or Reg.exists("14.png",0)or Reg.exists("15.png",0)or Reg.exists("28.png",0): Please let me know if there are any other ways , in which we can achieve flexibility of the Sikuli library in matching the target image, with the source image. -- 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 #690699]: JAVA / Sikulix 2.0.4 / findBestList() refuses to accept an ArrayList
Question #690699 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690699 Status: Expired => Answered RaiMan changed the question status: has to be checked. -- 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 #690699]: JAVA / Sikulix 2.0.4 / findBestList() refuses to accept an ArrayList
Question #690699 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690699 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- 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 #691293]: Fault tolerance for target images
Question #691293 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/691293 Status: Open => Answered RaiMan proposed the following answer: For SikuliX internally using OpenCV's machTemplate() only the pixels are relevant. If your images from the source machine (1440x900) are shown on the target machine (1280x800) with the same pixels in width and height, then the images would only look a bit smaller, but will be found by SikuliX. Problems arise only in cases, where the rendering process on other machines add pixels (resized or even distorted). Come back if your tests say something different. Be aware: the target machines must either have a real screen or some fake-screen (e.g. with xvfb ...). -- 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 #691293]: Fault tolerance for target images
New question #691293 on Sikuli: https://answers.launchpad.net/sikuli/+question/691293 Hello, We are planning to use Sikuli for automation testing on the Salesforce platform. However, since the local development laptops’ screen resolution vs target machines/Jenkins’ box screen resolution could be different, therefore wanted to know about the fault tolerance of the Sikuli platform. For example, would the image detection api be able to detect the image if the source screenshot is from 1440x900 resolution but the scripts are running on a server with 1280x800 set as the resolution. Kudos on the progress of the library so far -- 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