[Sikuli-driver] [Bug 1474033] Re: Python construc to swap variables doesn't work in Sikuli
** Changed in: sikuli Status: Opinion = Invalid -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1474033 Title: Python construc to swap variables doesn't work in Sikuli --- this is not true Status in Sikuli: Invalid Bug description: In PYTHON there is a simple construct to swap Variables without the use of any Temp Variable x,y = y,x but it doesn't work in SIKULI, Am I right? Here is my example... var1 = 0 var2 = 1 print var1 = , var1 print var2 = , var2 var1, var2 = var2, var1 print var1 = , var1 print var2 = , var2 To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1474033/+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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 RaiMan proposed the following answer: @Justin Ok, understood. So if you are more the type programming-by-example, then the docs of Sikuli currently do not have much for Java. Here I fully agree with Eugene. I will surely enhance that over the next months. ... but on the other hand: a Java programmer must be able to read javadocs: http://nightly.sikuli.de/docs/index.html so since screen.exists(new Pattern(image6).similar(0.95),1); returns a Match object, it has to be Match myMatch = screen.exists(new Pattern(image6).similar(0.95),1); to store the Match object for later use. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269202]: Region: doFind: Image not loadable: wechat_icon.png
New question #269202 on Sikuli: https://answers.launchpad.net/sikuli/+question/269202 I can not run my sikuli project and the log was following : [error] ImagePath: add: class images not found on classpath. [error] ImagePath: add: not valid: images [error] Image: could not be loaded: file:/F:/test/Wechat_automation/hs/Wechat/Wechat.sikuli/wechat_icon.png [error] Image: Image not valid, but TextSearch is switched off! [error] script [ Wechat ] stopped with error in line 40 [error] FindFailed ( Region: doFind: Image not loadable: wechat_icon.png ) [error] --- Traceback --- error source first line: module ( function ) statement 13: main ( startwechat ) click(wechat_icon.png) 36: main ( runTest ) self.startwechat() [error] --- Traceback --- end -- I put wechat_icon.png into image folder,and image folder was under sikuli project folder. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269185]: OnAppear and OnVanish on the same region
Question #269185 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269185 Status: Open = Answered RaiMan proposed the following answer: Yep, there is a feature, which is not yet in the docs. Each observer onXXX gets a unique name, that is registered at time of creation. With this name one can later access this observer. obsAppear = region.onAppear(...) obsAppear now contains the name of this specific observer obsVanish = region.onVanish(...) same here now you can say in the handler: event.region.setInactive(obsAppear) and event.region.setActive(obsAppear) setActive() returns the observer to the same state as if it had run the first time. Try it out, I did not fully test it yet. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #263194]: Status of bug #1428110 changed to 'Fix Released' in Sikuli
Bug #1428110 status changed in Sikuli: In Progress = Fix Released https://bugs.launchpad.net/sikuli/+bug/1428110 [1.1.0] Windows 7 64: Java 8-31: crashes with insufficient memory after longer run (40 min here) This bug is linked to #263194. [1.1.0] Win 7 64: Java 8 memory problem https://answers.launchpad.net/sikuli/+question/263194 -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256236]: Differing images matched with very high similarity
Question #256236 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256236 RaiMan posted a new comment: If a webpage is not ready instantly and completed visually overcome time in steps, you might get a found with low similarity. This can either be compensated by adding some waiting time before the search, or by creating a Pattern with the image and a similarity of 0.95, which would internally wait for screen content that satisfies the condition. I prefer the second solution. problematic code: click(button) if (exists(Pattern(image).similar(0.5)) solution 1: click(button) wait(2) if (exists(Pattern(image).similar(0.5)) solution 2: click(button) if (exists(Pattern(image).similar(0.95), 5) this would give the search max 5 seconds time to find with a high score, but the search would succeed already after 1 second if found with the given similarity. So this is more dynamic and leads to faster scripts in the average. -- You received this question notification because you are a member of Sikuli Drivers, which 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 1428110] Re: [1.1.0] Windows 7 64: Java 8-31: crashes with insufficient memory after longer run (40 min here)
thanks. ** Changed in: sikuli Status: In Progress = Fix Released ** Summary changed: - [1.1.0] Windows 7 64: Java 8-31: crashes with insufficient memory after longer run (40 min here) + [1.1.0] Windows 7 64: Java 8-31: crashes with insufficient memory after longer run (40 min here) --- fixed with Java 8-45 ** Description changed: * workaround: - use Java 7 + use Java 7 --- but should work with Java 8-45+ also -- reported by: https://launchpad.net/~emaslov1 I have 4-hour sequence of about 50 Sikuli tests, driven by Python Unittest from command line, running well for last half of year. Having got new Windows 7 64 bit machine, I copied there the whole Sikuli stuff, and then installed the last Java (8.31) from java.com . Now it's difficult to find old Java there... Sikuli seemed to start working well, and IDE worked well with separate scripts, but, trying to run the whole sequence, Java crashed after five or six tests (40 min), with Windows crash message box, because of insufficient memory for it. Extending the memory limit in runsikulix.cmd had no effect at all. The problem was finally solved with installation of older Java (7.67) Java 8 seems to have some problems. ** Description changed: * workaround: use Java 7 --- but should work with Java 8-45+ also + + from comment #1 + If Java dies on large and long running unittest test suites, division of the large suite into several smaller suites helps. The common start python script should create and execute them in sequence. -- reported by: https://launchpad.net/~emaslov1 I have 4-hour sequence of about 50 Sikuli tests, driven by Python Unittest from command line, running well for last half of year. Having got new Windows 7 64 bit machine, I copied there the whole Sikuli stuff, and then installed the last Java (8.31) from java.com . Now it's difficult to find old Java there... Sikuli seemed to start working well, and IDE worked well with separate scripts, but, trying to run the whole sequence, Java crashed after five or six tests (40 min), with Windows crash message box, because of insufficient memory for it. Extending the memory limit in runsikulix.cmd had no effect at all. The problem was finally solved with installation of older Java (7.67) Java 8 seems to have some problems. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1428110 Title: [1.1.0] Windows 7 64: Java 8-31: crashes with insufficient memory after longer run (40 min here) --- fixed with Java 8-45 Status in Sikuli: Fix Released Bug description: * workaround: use Java 7 --- but should work with Java 8-45+ also from comment #1 If Java dies on large and long running unittest test suites, division of the large suite into several smaller suites helps. The common start python script should create and execute them in sequence. -- reported by: https://launchpad.net/~emaslov1 I have 4-hour sequence of about 50 Sikuli tests, driven by Python Unittest from command line, running well for last half of year. Having got new Windows 7 64 bit machine, I copied there the whole Sikuli stuff, and then installed the last Java (8.31) from java.com . Now it's difficult to find old Java there... Sikuli seemed to start working well, and IDE worked well with separate scripts, but, trying to run the whole sequence, Java crashed after five or six tests (40 min), with Windows crash message box, because of insufficient memory for it. Extending the memory limit in runsikulix.cmd had no effect at all. The problem was finally solved with installation of older Java (7.67) Java 8 seems to have some problems. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1428110/+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 #269202]: Region: doFind: Image not loadable: wechat_icon.png
Question #269202 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269202 Status: Open = Answered RaiMan proposed the following answer: I understand, that you have -- F:/test/Wechat_automation/hs/Wechat/Wechat.sikuli -- folder images wechat_icon.png You seem to use addImagePath(images) ... but you have to give an absolute path addImagePath(os.path.join(getBundlePath(), images)) You received this question notification because you are a member of Sikuli Drivers, which 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 1474033] Re: Python construc to swap variables doesn't work in Sikuli --- this is not true
** Summary changed: - Python construc to swap variables doesn't work in Sikuli + Python construc to swap variables doesn't work in Sikuli --- this is not true -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1474033 Title: Python construc to swap variables doesn't work in Sikuli --- this is not true Status in Sikuli: Invalid Bug description: In PYTHON there is a simple construct to swap Variables without the use of any Temp Variable x,y = y,x but it doesn't work in SIKULI, Am I right? Here is my example... var1 = 0 var2 = 1 print var1 = , var1 print var2 = , var2 var1, var2 = var2, var1 print var1 = , var1 print var2 = , var2 To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1474033/+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 1474178] Re: Region: doFind: Image not loadable: wechat_icon.png
I understand, that you have -- F:/test/Wechat_automation/hs/Wechat/Wechat.sikuli -- folder images wechat_icon.png You seem to use addImagePath(images) ... but you have to give an absolute path addImagePath(os.path.join(getBundlePath(), images)) -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1474178 Title: Region: doFind: Image not loadable: wechat_icon.png Status in Sikuli: Invalid Bug description: I can not run my sikuli project and the log was following : [error] ImagePath: add: class images not found on classpath. [error] ImagePath: add: not valid: images [error] Image: could not be loaded: file:/F:/test/Wechat_automation/hs/Wechat/Wechat.sikuli/wechat_icon.png [error] Image: Image not valid, but TextSearch is switched off! [error] script [ Wechat ] stopped with error in line 40 [error] FindFailed ( Region: doFind: Image not loadable: wechat_icon.png ) [error] --- Traceback --- error source first line: module ( function ) statement 13: main ( startwechat ) click(wechat_icon.png) 36: main ( runTest ) self.startwechat() [error] --- Traceback --- end -- I put wechat_icon.png into image folder,and image folder was under sikuli project folder. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1474178/+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 1474178] Re: Region: doFind: Image not loadable: wechat_icon.png
not a bug, but a usage problem ** Changed in: sikuli Status: New = Invalid ** Converted to question: https://answers.launchpad.net/sikuli/+question/269202 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1474178 Title: Region: doFind: Image not loadable: wechat_icon.png Status in Sikuli: Invalid Bug description: I can not run my sikuli project and the log was following : [error] ImagePath: add: class images not found on classpath. [error] ImagePath: add: not valid: images [error] Image: could not be loaded: file:/F:/test/Wechat_automation/hs/Wechat/Wechat.sikuli/wechat_icon.png [error] Image: Image not valid, but TextSearch is switched off! [error] script [ Wechat ] stopped with error in line 40 [error] FindFailed ( Region: doFind: Image not loadable: wechat_icon.png ) [error] --- Traceback --- error source first line: module ( function ) statement 13: main ( startwechat ) click(wechat_icon.png) 36: main ( runTest ) self.startwechat() [error] --- Traceback --- end -- I put wechat_icon.png into image folder,and image folder was under sikuli project folder. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1474178/+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 #269208]: Reading uneditable text form a screen
Question #269208 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269208 Status: Open = Answered RaiMan proposed the following answer: did you already try to do something like that: Region regText = new Region(…); // whatever to get the region that contains the text to read, as little background as possible System.out.println(regText.text()); // what do you get? With Sikuli features, this is the only possible approach. You might experiment with Tesseract from command line. If this works better, you can issue a command from inside your Java Sikuli code, to get the text, after having captured the region (regText above) to an image file. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269208]: Reading uneditable text form a screen
New question #269208 on Sikuli: https://answers.launchpad.net/sikuli/+question/269208 Hi, I am using sikuli 1.0.1. I have an application where I need to read uneditable text. Uneditable text means- suppose a text appears on screen like 10 Successful Entries, then I need to read the text. Note: The next can not be selected or highlighted using mouse. The application is a java application. Region.Text is still in experimental stage, is there any other workarround or any other jar file which i can make use of. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269211]: how to input Chinese characters in Sikuli
Question #269211 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269211 Status: Answered = Solved peter huang confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 Status: Answered = Solved Justin Veerman confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269211]: how to input Chinese characters in Sikuli
New question #269211 on Sikuli: https://answers.launchpad.net/sikuli/+question/269211 i am using Sikulix 1.1.0 nightly built around 6.25. 2015 on win7 64 bit and JDK1.8, Robotframework 2.8.7, Python2.7.10, Jython2.5.4RC1 I want to input Chinese characters in one textbox and then click search in the head of the box. in the scripts, I use following to explicitly saying i am using utf-8 and we are using type(unicode(s,utf-8)) as Railman suggested in 2013 posts. But i still get the following errors. IllegalArgumentException: Cannot convert character 上 # -*- coding: utf-8 -*- from __future__ import with_statement from sikuliwrapper import * addImagePath(common.cfgImageLibrary) class Wechat(BaseLogger): ROBOT_LIBRARY_SCOPE = 'TEST SUITE' def __init__(self): self.appCoordinates = (0, 0, 1024, 768) def startwechat(self): print 'This is continuing to work' def searchPublic(self): click(cross.png) wait(5) click(addfriends.png) wait(5) click(addnewfriend.png) s=上海睿博研发 type(unicode(s,utf-8)) 22:15:17.616 INFO [log] CLICK on L(396,137)@S(0)[0,0 1366x768] [log] CLICK on L(328,216)@S(0)[0,0 1366x768] [log] CLICK on L(259,191)@S(0)[0,0 1366x768] [log] TYPE 上海睿博研发 22:15:17.675 FAIL IllegalArgumentException: Cannot convert character 上 22:15:17.679 DEBUG java.lang.IllegalArgumentException: at org.sikuli.script.Key.toJavaKeyCode(Key.java:692) at org.sikuli.script.RobotDesktop.typeChar(RobotDesktop.java:359) at org.sikuli.script.Region.keyin(Region.java:4177) at org.sikuli.script.Region.type(Region.java:4045) at Wechat$py.searchPublic$4(E:\wechatbackup\Wechat\Wechat.sikuli\Wechat.py:79) at Wechat$py.call_function(E:\wechatbackup\Wechat\Wechat.sikuli\Wechat.py) at robot.model.testcase$py.visit$7(C:\Python27\Lib\site-packages\robot\model\testcase.py:64) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269211]: how to input Chinese characters in Sikuli
Question #269211 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269211 Status: Open = Answered RaiMan proposed the following answer: type() does not work with utf-8 anyways (see faq 933) use paste() instead. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #264257]: i can't make mouseclick active on ios remote
Question #264257 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/264257 Alexc posted a new comment: The specific code in question is dragDrop(match.offset(Location(0,0)), match.offset(Location(-300,0))) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #264257]: i can't make mouseclick active on ios remote
Question #264257 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/264257 Alexc posted a new comment: I have started a command prompt as an administrator (on windows) and started sikuli using java -jar sikuli-ide.jar I have also started Mobizen as an administrator. dragDrop does not work on the Mobizen application after it appears on the screen. I will probably resort to using VB script in autoit or compiling a windows api executable and running it if it's really a permissions thing. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #264257]: i can't make mouseclick active on ios remote
Question #264257 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/264257 Alexc posted a new comment: I just found a workaround with: Settings.MoveMouseDelay = 2 mouseDown(Button.LEFT) wait(5) mouseMove(match.offset(Location(-300,0))) dragDrop still does not appear to be working at this time -- You received this question notification because you are a member of Sikuli Drivers, which 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