[Sikuli-driver] [Question #676756]: handler function
New question #676756 on Sikuli: https://answers.launchpad.net/sikuli/+question/676756 The docs say that the observation is paused until the handler function is returned. Does that mean that the observation time is paused if the handler function is called ? say if you observe for 1 second, and at t = 0.5, the handler function is called, Then once handler code has completed, the observation timer continues at t = 0.5 ? Just checking my understanding here. -- 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 #676753]: find(image_path) always gives template size error
New question #676753 on Sikuli: https://answers.launchpad.net/sikuli/+question/676753 I am trying to compare screenshots of the phone before and after a click. Ideally, after a click, I would wait for a moment to see if there is any change in UI, and if it detects a change then i would take a screenshot of it. This is the function that i coded out . def observe_and_click(phone_region, pixel_region, handler, observe_time): global i path = capture(phone_region,"/Users/ongyichong/SikuliX/Scripts","temp") # capture the current screenshot before click pixel_region.click() # make pixel click on region wait(0.5) # wait for UI transitions if any try: match = phone_region.find(path) # find a match for this #path_1 = capture(phone_region,"/Users/ongyichong/SikuliX/Scripts",str(i)) print("similarity: " + str(match.getScore())) except FindFailed or CvException: # screenshots are dissimilar, take screenshot path_1 = capture(phone_region,"/Users/ongyichong/SikuliX/Scripts",str(i)) i += 1 I dont know why the line match = phone_region.find(path) always throws this error: /Users/raimundhocke/SikuliX/OpenCV/opencv-3.4.2/modules/imgproc/src/templmatch.cpp:1107: error: (-215:Assertion failed) _img.size().height <= _templ.size().height & & _img.size().width <= _templ.size().width in function 'matchTemplate' Since I am using sikuli's capture function the image captured should be of similar pixels. Why there be a mismatch in the template size ? -- 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 #196479]: ExceptionInInitializerError when trying to run sikuli from Eclipse using JAVA
Question #196479 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/196479 Matt posted a new comment: I was get ExceptionInInitializerError when trying to run sikuli from IntelliJ using JAVA. I was able to fix it by running intelliJ as administrator. See if that helps. -- 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 #569742]: "java.lang.ExceptionInInitializerError" thrown when I run Selenium+sikuli script in Linux
Question #569742 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/569742 Matt proposed the following answer: I was getting an ExceptionInInitializerError when trying to run sikuli from IntelliJ using JAVA. I was able to fix it by running intelliJ exe file as administrator. See if that helps. -- 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 #676735]: Chrome: recent changes --- most of my test-pictures no longer useable
Question #676735 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676735 Status: Open => Answered masuo proposed the following answer: @Marc Summers Document is here. https://sikulix-2014.readthedocs.io/en/latest/region.html#Region.setFindFailedResponse [example code1:] click("image.png") If "image.png" changed, FindFailed exception will occur at this step. [example code2:] setFindFailedResponse(PROMPT) click("image.png") In this case, you will be prompted for the way to handle the situation instead of FindFailed exception. When you select Capture/Skip button, you would allow to recapture the image immediately. -- 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 #676733]: Error looking up function 'TessPDFRendererCreateTextonly'
Question #676733 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676733 Status: Answered => Solved Pedro García confirmed that the question is solved: I've followed the instructions and it´s working perfectly!! Thank you very much. -- 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 #676735]: Chrome: recent changes --- most of my test-pictures no longer useable
Question #676735 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676735 Status: Answered => Open Marc Summers is still having a problem: Thanks for your answer RaiMan. You speak of The FindFailed options to recapture the not found images while the script is running might help, to reduce the effort Could you go into some more detail, or point me in the right direction of the documentation. I have not heard of this capability, or the syntax of how to implement it. Any help would be much appreciated. Thanks. PS: Yes, this is what I am going to have to do: images are no longer useable for search ... then this means, that images you see on the screen now and the older shot to search with no longer have the same pixel content. So you have to analyze, what exactly has changed. -- 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 #676735]: Chrome: recent changes --- most of my test-pictures no longer useable
Question #676735 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676735 Mike posted a new comment: I know we don't know what your applications involve but 800 pictures seems an awful lot. SikuliX examples tend to look for an icon or panel or box etc then look for another one and so on. If the target 'pages' are relatively stable you might instead trying to establish your self on a place on a page and then use positioning and/or tabs or other keystrokes to navigate around the page rather than keep looking for images. -- 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 #676735]: Chrome: recent changes --- most of my test-pictures no longer useable
Question #676735 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676735 Status: Needs information => Answered RaiMan proposed the following answer: If you are talking about SikuliX features (supposing you use them), then the complete image handling is done in Java with Java features. OpenCV is used for image search (match-template) and Tesseract is used for OCR in images. If you say: images are no longer useable for search ... then this means, that images you see on the screen now and the older shot to search with no longer have the same pixel content. So you have to analyze, what exactly has changed. Take one example, make a new shot and compare it in an image viewer resized, so you can see the pixels. Only if there is some systematic change, that could be compensated programmatically, then there is a chance. Otherwise you have to recapture the images. The FindFailed options to recapture the not found images while the script is running might help, to reduce the effort. -- 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 #676735]: Chrome: recent changes --- most of my test-pictures no longer useable
Question #676735 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676735 Summary changed to: Chrome: recent changes --- most of my test-pictures no longer useable -- 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 #676735]: recent changes to Chrome broke most all of my tests
Question #676735 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676735 Mike posted a new comment: I know it doesn't help but I believe it is Open CV that 'sees the pictures'. Tesseract is used for OCR. Your question however is very interesting. It can be re-phrased as "How can you protect yourself from changes to images?" -- 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 #676645]: ImportError: no module named sikuli --- sikulixapi.jar not on Java classpath
Question #676645 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676645 Summary changed to: ImportError: no module named sikuli --- sikulixapi.jar not on Java classpath -- 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 #676645]: ImportError: no module named sikuli
Question #676645 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676645 Status: Open => Answered RaiMan proposed the following answer: [admin@RFC1918 sikuli]$ echo $CLASSPATH /usr/admin/Sikuli:/usr/bin/java:/usr/admin/Sikuli:/usr/bin/java:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/admin/.local/bin:/home/admin/bin This is surely not a classpath, that makes sense. ... and sikulixapi.jar is not part of it. a Java classpath is a list jar-files and/or folders contain java class- files. -- 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 #676426]: Cannot start App when executing Sikuli script from cmd
Question #676426 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/676426 Status: Open => Answered RaiMan proposed the following answer: I am sorry, but I have no idea. To start the given executable internally a command execution is detached: cmd /c start "" /B "path-to-executable" To get the state of the app, internally this Win command is executed: tasklist /V /FO CSV /NH /FI "IMAGENAME eq " where is the executables name (from given executable path the name only as .exe: 3dsmax.exe in your case) Since from the code I cannot see any reason for blocking, I cannot help you currently. I will revise the App.open() stuff a little bit, to get more info about what is happening and ask you to test again. If it is urgent, then you have to implement your own app-start solution with os.Popen, that you already use apparently. -- 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