Re: [Sikuli-driver] [Question #665044]: Constantly Checking for GUI Failure Messages In Test
Question #665044 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665044 Status: Open => Answered RaiMan proposed the following answer: see the observe feature (use at least version 1.1.1): http://sikulix-2014.readthedocs.io/en/latest/region.html#observing-visual-events-in-a-region -- 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 #664839]: Issue with wait() and type()
Question #664839 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664839 Status: Open => Answered RaiMan proposed the following answer: Very hard to get behind the reason in such situations. BTW: type() and write() internally are the same: using the features of Java Robot If the type() is reported, but not actually done, then there are 2 possible reasons: - 1. the target app is blocking Java Robot actions (not the case here) - 2. the target app does not have focus in the way you expect it to have Since SikuliX does not have a feature to check, wether the type was really done, the workflow must either secure beforehand, that the prerequisites for a definitive success are given (such as focus ready) or check afterwards with other means, that the type() was successful (if not, take corrective actions such as repeating the actions). If in your case, the fallback solution (using arrow keys) works better: congratulations ;-) be happy. -- 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 #664839]: Issue with wait() and type()
Question #664839 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664839 sharon posted a new comment: Any updates from anyone? -- 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 #665115]: Successful add of image path, unable to load images
New question #665115 on Sikuli: https://answers.launchpad.net/sikuli/+question/665115 This is successful ImagePath.add("com.jaditd.wood.Wood/images"); This is also successful Pattern gather = new Pattern("/images/gatherWood.png"); This fails, though, I think since the Image path modification was successful, it shouldn't Pattern gather = new Pattern("gatherWood.png"); How do I check the reason for the failure? The image is stored at src/main/resources/images and I have checked that in the jar file images/gatherWood.png exists. -- 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] [Bug 1751840] Re: Error creating App object on linux using Java
It's worth noting, part of the failure was mine for not remembering the dependency issues (needing to install an older opencv (version 2) and tesseract. The only real 'issue' was that without combining the two jar files' class files, I was unable to successfully run the installer. [debug (3/1/18, 11:49:03 AM)] RunSetup: popAsk: You have for Linux native libs /home/mike/.Sikulix/SikulixDownloads/sikulixlibslux-1.1.1.jar Click YES, if you want to use this for setup processing ... or click NO, to ignore it and download a fresh copy [debug (3/1/18, 11:49:05 AM)] RunSetup: Copied from Downloads: sikulixlibslux [debug (3/1/18, 11:49:05 AM)] RunSetup: checking usability of bundled, provided or built libs the tail of the log, after pressing YES, it crashes. Press NO and it will download the file, then crash. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1751840 Title: Error creating App object on linux using Java Status in Sikuli: Invalid Bug description: Using Java 9, and the latest 1.1.2 nightly build Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/exec/ExecuteStreamHandler at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:292) at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36) at org.sikuli.script.App.(App.java:40) at flax.Flax.main(Flax.java:81) Caused by: java.lang.ClassNotFoundException: org.apache.commons.exec.ExecuteStreamHandler at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496) ... 5 more Line of code causing the error is atitd = new App("A Tale in the Desert"); (atitd was declared elsewhere, this is just the assignment) Code executes successfully on Mac OS X, error is only thrown in Linux. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1751840/+subscriptions ___ 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 #665097]: Ubunto Linux Installation
Question #665097 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665097 Mike Bedwell proposed the following answer: ldd requires the full path to the library you want to check. Most linux distros would store it in /usr/lib change your command to 'ldd -r /usr/lib/libopencv_core.so.2.4' (sans quotes of course) and you may get better results. Failing that, you can usually use the 'whereis' utility to see where the file was stored. 'whereis libopencv_core.so.2.4'. -- 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] [Bug 1751840] Re: Error creating App object on linux using Java
Of course. I'm fairly confident I over-complicated the solution, thus the lack of real detail. I installed opencv 2.4 and tesseract 3.05 on the system, as the installers check for the usability of libVisionProxy was failing due to those libraries missing. I wasn't sure if there were somehow included with the linux install routines, and the 'easy' solution for me was just to install them system wide. I also unzipped the installer jar, and the sikulixliblux jar. I copied the class files from sikulixliblux to the installer classpath folders. Then I ran the installer class directly without rebuilding the jar. Without doing so, the installer kept crashing. With these things done, I was able to successfully complete an install on a linux machine using the 1.1.2-20180222 nightly on linux. On my Mac, I didn't have to do any of these things, it worked flawlessly out of the box. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1751840 Title: Error creating App object on linux using Java Status in Sikuli: Invalid Bug description: Using Java 9, and the latest 1.1.2 nightly build Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/exec/ExecuteStreamHandler at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:292) at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36) at org.sikuli.script.App.(App.java:40) at flax.Flax.main(Flax.java:81) Caused by: java.lang.ClassNotFoundException: org.apache.commons.exec.ExecuteStreamHandler at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496) ... 5 more Line of code causing the error is atitd = new App("A Tale in the Desert"); (atitd was declared elsewhere, this is just the assignment) Code executes successfully on Mac OS X, error is only thrown in Linux. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1751840/+subscriptions ___ 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 #665063]: SikuliX freezes in the IDE, when using tools
Question #665063 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665063 Status: Needs information => Open Michael Blomli gave more information on the question: java version "1.8.0_162" Java(TM) SE Runtime Environment (build 1.8.0_162-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode) +++ trying to run SikuliX +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\SikuliX\SikuliX 1.1.2-2\sikulix.jar Also tried with SikuliX 1.1.1 I am using windows 10 Home - 64 -- 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 #664446]: Similar Function App.waitVanish('someapp')
Question #664446 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664446 Status: Answered => Open yop is still having a problem: Hello, After some Holidays and few tests. For information the solution for me is the following script : myApp=App('PathtoMyApp') myApp.open() wait(1) for n in range (30):#time out at 30s if myApp.window() : wait(1) else : break Whit this script during the loop of 30s, if i kill by myself the application " myApp", immediatly the loop stops to keep the script. If i change "myApp.window()" by "myApp.isRunning()" --> Its works if the application is stoped by Sikuli Script like "myApp.close()" --> It doesnt work if i kill the application by myself ...i don't know if my explainations are so clear :-) Thanks Yopcitron -- 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 #665063]: SikuliX freezes in the IDE, when using tools
Question #665063 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665063 Status: Open => Needs information RaiMan requested more information: what SikuliX? what System? what Java? -- 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] [Bug 1751840] Re: Error creating App object on linux using Java
Thanks for evaluation. --- After installing the necessary dependancies in linux and modifying the setup jar a bit ... possible to share more specific information? -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1751840 Title: Error creating App object on linux using Java Status in Sikuli: Invalid Bug description: Using Java 9, and the latest 1.1.2 nightly build Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/exec/ExecuteStreamHandler at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:292) at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36) at org.sikuli.script.App.(App.java:40) at flax.Flax.main(Flax.java:81) Caused by: java.lang.ClassNotFoundException: org.apache.commons.exec.ExecuteStreamHandler at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496) ... 5 more Line of code causing the error is atitd = new App("A Tale in the Desert"); (atitd was declared elsewhere, this is just the assignment) Code executes successfully on Mac OS X, error is only thrown in Linux. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1751840/+subscriptions ___ 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 #664859]: Jython cheat sheet
Question #664859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664859 CCIOLA posted a new comment: Thanks for the concern! :) -- 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 #665063]: SikuliX freezes in the IDE, when using tools
Question #665063 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665063 Description changed to: Hi installed SikuliX today, and it worked fine the first minute or so. I made it take an screenshot and an click command, ran it and it worked fine. Then I clicked the take screenshot button again and it changes my icon to the cross for me to choose region, and it freezes there. Cant drag the region, and cant click anthing. I can alt + tab etc, but the system is still hanging on the screen capture. I have to force quit the program on ctrl alt del. Seems it works 50 % of the time for me with every tool in that program, it keeps hanging. I am getting an error in the console: [info] IDE startup: 7,1 seconds Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(Unknown Source) at java.awt.Component.getLocationOnScreen(Unknown Source) at javax.swing.text.JTextComponent$InputMethodRequestsHandler.getTextLocation(Unknown Source) at sun.awt.im.InputMethodContext.getTextLocation(Unknown Source) ... Thanks for any help. -- 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] [Bug 1752592] Re: [request] SikuliX features cheat sheet - quick reference
see related question ** Changed in: sikuli Status: New => In Progress ** Changed in: sikuli Importance: Undecided => Medium ** Changed in: sikuli Assignee: (unassigned) => RaiMan (raimund-hocke) ** Changed in: sikuli Milestone: None => 1.1.2 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1752592 Title: [request] SikuliX features cheat sheet - quick reference Status in Sikuli: In Progress Bug description: Hi, do you know some Jython cheat sheet, listing the main commands? I am looking for something like this, but of Jython: https://thoughtbot.com/upcase/test-driven-rails-resources/capybara.pdf []s To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1752592/+subscriptions ___ 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] [Bug 1752592] [NEW] [request] SikuliX features cheat sheet - quick reference
Public bug reported: Hi, do you know some Jython cheat sheet, listing the main commands? I am looking for something like this, but of Jython: https://thoughtbot.com/upcase/test-driven-rails-resources/capybara.pdf []s ** Affects: sikuli Importance: Medium Assignee: RaiMan (raimund-hocke) Status: In Progress -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1752592 Title: [request] SikuliX features cheat sheet - quick reference Status in Sikuli: In Progress Bug description: Hi, do you know some Jython cheat sheet, listing the main commands? I am looking for something like this, but of Jython: https://thoughtbot.com/upcase/test-driven-rails-resources/capybara.pdf []s To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1752592/+subscriptions ___ 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 #665097]: Ubunto Linux Installation
Question #665097 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665097 Status: Open => Answered RaiMan proposed the following answer: I am not a Linux expert, but it might be, that the ldd command needs a valid path to the file. Should be /usr/local/bin normally. -- 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 #664859]: Jython cheat sheet
Question #664859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664859 RaiMan proposed the following answer: made it a request bug -- 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 #664859]: Status of bug #1752592 changed to 'In Progress' in Sikuli
Bug #1752592 status changed in Sikuli: New => In Progress https://bugs.launchpad.net/sikuli/+bug/1752592 "[request] SikuliX features cheat sheet - quick reference" This bug is linked to #664859. Jython cheat sheet https://answers.launchpad.net/sikuli/+question/664859 -- 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 #664859]: Jython cheat sheet
Question #664859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664859 Linked to bug: #1752592 https://bugs.launchpad.net/bugs/1752592 "[request] SikuliX features cheat sheet - quick reference" -- 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 #664859]: Jython cheat sheet
Question #664859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664859 CCIOLA posted a new comment: Thanks @podolyan-roman, @RaiMan, it could really help who is starting as a quick guide/reference. -- 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 #664859]: Jython cheat sheet
Question #664859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664859 Status: Open => Answered RaiMan proposed the following answer: ok, understood. Something like that is not available, at least directly from within SikuliX docs. Currently the only source for that are the already mentioned docs in comment#3 But currently I am evaluating the backwards compatibility of version 2 (not yet available, no release date ;-) It looks like such a thing can be a side-effect. I have it on the list. -- 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 #664859]: Jython cheat sheet
Question #664859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/664859 Status: Answered => Open CCIOLA is still having a problem: Hi, I'm looking for a list or summary of the commands most applied on SikuliX, explaining what each one do, for instance: wait() - waits for a time specified in seconds. shutil.move() - moves the archive to a folder. myApp.focus() - keeps the focus on a specific window. type() - puts a string or type a specific key from keyboard. popup() - shows a popup message. [...] among others. -- 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 #665097]: Ubunto Linux Installation
New question #665097 on Sikuli: https://answers.launchpad.net/sikuli/+question/665097 Just installed Ubuntu 16.04LTS on an old laptop Now trying to install SIKULIX - so instead of just diving in i have read the instructions first and not even downloaded Sikuli Found this and Following the instructions on http://sikulix.com/specials/files/linux-setup-prerequisites.html sudo apt install libopencv-dev sudo apt install tesseract-ocr Above both worked ok so doing the next bit jeff@jeff-Satellite-L650:~$ ldconfig -p libopencv_core.so.2.4 /sbin/ldconfig.real: relative path `libopencv_core.so.2.4' used to build cache jeff@jeff-Satellite-L650:~$ ldconfig -p libopencv_imgproc.so.2.4 /sbin/ldconfig.real: relative path `libopencv_imgproc.so.2.4' used to build cache jeff@jeff-Satellite-L650:~$ ldconfig -p libopencv_highgui.so.2.4 /sbin/ldconfig.real: relative path `libopencv_highgui.so.2.4' used to build cache jeff@jeff-Satellite-L650:~$ ldconfig -p libtesseract.so.3 /sbin/ldconfig.real: relative path `libtesseract.so.3' used to build cache then jeff@jeff-Satellite-L650:~$ ldd -r libopencv_core.so.2.4 ldd: ./libopencv_core.so.2.4: No such file or directory so have stopped 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