[Sikuli-driver] [Question #274718]: IDE command wait("image") not waiting for image to appear before script continues
New question #274718 on Sikuli: https://answers.launchpad.net/sikuli/+question/274718 Hello, I am a beginner user of Sikuli and have been using the sikuli IDE to create sikuli scripts for a research project. I just recently upgraded to Sikulix 1.1.0 and the program I've be automating with Sikuli, Adobe Acrobat, also just recently upgraded it's version to DC. I changed all the images in my script to match the new images from the updated version of Adobe Acrobat but the IDE script no longer works correctly. The old IDE script I used to run to automate a process was short and simple: doubleClick("image") click("image") click("image") click("image") click("image") wait("image", 300) click("image") This script worked without problems before the upgrades. However. the script no longer seems to work after upgrading and then updating all the images for the new Adobe Acrobat process I need to run. The process doesn't wait at that wait() step. doubleClick("image") click("image") click("image") click("image") click("image") wait("image") click("image") I've also tried varying the script with waitVanish(), looking for a different image, along with onAppear, but I cannot get the process to stop and wait before moving on to the last command. I am hoping I have made a simple error that someone can point out to me or perhaps there has been a slight change made in the scripting that I have overlooked with the new Sikulix release. I haven't found a solution that "works" in the documentation or in the help forums so far which could mean it's a bug, but it could just as likely be user error (me). The image I am asking the process to wait on is a button that says "completed" when a batch of tiff are done being processed. I have wondered if perhaps the "completed" button might be appearing too fast for me to see between each processed image? Can anyone recommend a way to test for this? In an attempt to keep sikuli from getting confused I use a simple grey background and limited icons on my desktop. I am using a windows 7 machine to run the script (windows 7 is a requirement for the project we are working on). My current version of JAVA is Version 8. Thank you for your 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
Re: [Sikuli-driver] [Question #274647]: command line execution failing
Question #274647 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274647 Status: Needs information => Answered masuo proposed the following answer: Use Command Line Options, and recognize what error has occurred . To know the error is first . [Command Line Options:] -d 3 -f http://sikulix-2014.readthedocs.org/en/latest/faq/010-command-line.html #command-line-options-generally-debug-output-related -- 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 #274647]: command line execution failing
Question #274647 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274647 Dwarika posted a new comment: issue is sikuli identify the object to click and move the cursior to the object but does not click it. Any idea why -- 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 #274647]: command line execution failing
New question #274647 on Sikuli: https://answers.launchpad.net/sikuli/+question/274647 HI I have created 3 different sikuli script to execute one by one. When i run each of the script separately using Run button .its properly working with 100% accuracy. But when i trigger the script from command line with -r option then i am not getting accuracy. its failing with intermittent issue. Can you please 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
Re: [Sikuli-driver] [Question #274647]: command line execution failing
Question #274647 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274647 Status: Open => Needs information masuo requested more information: Please explain what error has occurred . What does "intermittent problem" mean? -- 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 #274647]: command line execution failing
Question #274647 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274647 Dwarika posted a new comment: intermittent in the sense. some times it clicks the object some times its not. -- 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 #273609]: Sikuli code packed as Jar Executable?
Question #273609 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/273609 Status: Answered => Solved Michael confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #269630]: SikulixIDE 1.1.0 doesn't run even "Hello World"
Question #269630 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269630 Status: Answered => Solved Luiz Carlos Modesto confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #274766]: SikuliX v1.1.0 Java API supported OS's
Question #274766 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274766 Eugene S posted a new comment: Hi, Sikuli works fine fir me in Windows 7 as it should be. Maybe posting your code will help? Cheers -- 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 #274791]: Sikuli1.1.0
New question #274791 on Sikuli: https://answers.launchpad.net/sikuli/+question/274791 Hello, Sikuli1.1.0 can be a Windows platform under the.Exe installation package Personally feel that in the installation directory can do a lot of expansion, such as python, etc -- 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 #274127]: Not working methods of the class App - close(), focus(),
Question #274127 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274127 Eugene S proposed the following answer: You are having this problem because of how you define your firefox variable. When you write: firefox = App.open(r"C:\Program Files (x86)\Mozilla Firefox\firefox.exe") you assign the output of whatever value that is created as a result of EXECUTING the FireFox browser The error: [error] AttributeError ( 'NoneType' object has no attribute 'close' ) says exactly that. To make it work properly, you must do it like was offered by @masuo and first create an instance of the type App. The you will be able to use the App methods on it. -- 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 #274718]: IDE command wait("image") not waiting for image to appear before script continues
Question #274718 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274718 Status: Open => Answered Eugene S proposed the following answer: Hi, That's perhaps a general recommendation on debugging Sikuli scripts rather than the answer to your specific problem but still might prove useful. So when something doesn't work as expected, you can try the following steps to better understand what is actually going on. 1. First of all, wait times are often the issue. When something goes wrong, first step is to place some sleep times between steps. Don't forget that Sikuli doesn't wait for any action to complete and performs the next line straight away. In some cases that might miss a minor change on the screen and thus fail. A simple "time.sleep(waitTime)" will work. 2. When debugging, it is crucial to know exactly where are you in your script as the failure might occur not where you think it is. To help with that I am suggesting to place few print statements in between the steps saying what is happening at this specific moment. For example: print "Going to click on image1" click "image1.png" print "image1 clicked print "Going to wait for image2" wait("image2.png") print "image2 found" 3. Depending on your Sikuli MinSimilarity parameter, some areas might be incorrectly detected. Meaning that the pattern was found on the screen which is not the one you expected. To solve that, you might want to use highlight() function which will put a red frame around the eras on the screen that was detected. For example: area1 = "image1.png" foundPattern = find(area1) foundPattern.highlight(1) # show the red frame for one second Hope that helps. Cheers, Eugene -- 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 #274662]: execute other languages scripts in Sikuli's IDE
Question #274662 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274662 Status: Open => Answered Eugene S proposed the following answer: Installing Python on your computer should not create any conflict with Sikuli. If you have an external script that you want to run, you can do it like that: os.system("command to run from command line") For example (on Windows): os.system("dir") Cheers, Eugene -- 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 #274033]: How to include two images under the same line of code
Question #274033 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274033 Status: Open => Answered Eugene S proposed the following answer: while exists("WIN7_START.png") and exists("AppiumTaskBarIcon.png") works fine for me -- 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 #274766]: SikuliX v1.1.0 Java API supported OS's
Question #274766 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274766 Description changed to: I just started using SikuliX Java API v1.1.0. I did initial prototyping on OSX v10.10.5 against some web apps running on Firefox v42.0 and Chrome v46. I then tried to run the same Java code (contained in a JAR) on a Windows 7 Pro SP 1 system against same web app and browsers. The code appears to hang on the Win 7 system, as determined by logging only indicating it "started" the process to find an image. No further logging is done. I have logging setup to indicate when it found an image, on what screen it was found, time it took to find the image, etc. For example: Attempting basic browser authentication on CHROME < Only message in log when run on Win 7 Found Authentication Required dialog on screen: 0 in 482 ms Clicked Authentication Username field on screen: 0 CHROME authentication successful using username = 'foobar' and password = '***' Normal termination of Chrome Authentication Dialog thread >From the http://www.sikulix.com/ home page it indicates: "SikuliX is a Java application, that works on Windows XP+, Mac 10.6+ and most Linux/Unix systems. For Windows, Mac and Ubuntu 12.04+ it is complete and should normally work out of the box." Am I missing something for it to work on Win 7? FYI... In my maven dependency I've intentionally excluded jxgrabkey as it is not in a repo I can gain access to. It does not appear to cause any issue when run on OSX. Is there anything in jxgrabkey that is specific for Windows? -- 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 #273986]: Script won't stop
Question #273986 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/273986 Status: Open => Answered Eugene S proposed the following answer: Tried Ctrl+C? -- 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 #273859]: How can I bypass: AttributeError ( 'reflectedfunction' object has no attribute 'from_iterable' ) ?
Question #273859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/273859 Status: Open => Answered Eugene S proposed the following answer: It is unclear from you question what reflectedfunction is? >From the error though you can see that it fail because reflectedfunction object doesn't have a method called from_iterable. -- 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 #274791]: Sikuli1.1.0
Question #274791 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/274791 Status: Open => Answered masuo proposed the following answer: I think the following question will you help understand. https://answers.launchpad.net/sikuli/+question/272151 -- 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