Re: [Sikuli-driver] [Question #263456]: sikuli find same image in screen
Question #263456 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263456 RaiMan posted a new comment: faster? only by making true region to search in as small as possible and use: matches = list(reg.findAll(the empty checker box image)) where reg is the region evaluated somehow. -- 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 #262767]: How to catch the dynamic value and the compare with the static
Question #262767 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/262767 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 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 #263462]: Redirecting the Sikuli Logger and the setLogger: Jython init: we have problems Error
Question #263462 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263462 Status: Answered = Open aidma is still having a problem: I tried creating myLogger in the SikuliIDE 1.1.0 and it worked as expected. Unfortunately I am still unable to get it working from within the Eclipse environment or the interactive Jython console. I tried your suggestion but to no avail: C:\java -cp C:\SikuliX1.1\sikulixapi.jar;C:\jython2.7b4\jython.jar org.python.util.jython Jython 2.7b4 (default:3672e624962a, Feb 13 2015, 04:59:14) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_71 Type help, copyright, credits or license for more information. import org.sikuli.basics.SikulixForJython from sikuli import * class myLogger(): ... def callback(message): ... print redir: ,message ... Debug.setLogger(myLogger()) [setLogger: Jython init: we have problems %s] org.sikuli.scriptrunner.ScriptRunner (the underscores are not literal underscores, I put them there to preserve indentation within this post) Also interesting: Debug.log(msg) doesn't work from within my interactive console either (with or without redirected logs). It displays nothing. Though, similar to Debug.setLogger(obj), Debug.log(msg) DOES work when I use it in Sikulix IDE... I must be making a mistake somewhere, but I haven't the faintest idea where. -- 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 #263563]: Selenium test using Sikuli can't click on image when run from Jenkins
New question #263563 on Sikuli: https://answers.launchpad.net/sikuli/+question/263563 I'm writing Selenium Webdrivr tests and I'm using Sikuli to click on a Browse button. I have an image of the button stored on the disk, and here is my code. ScreenRegion screen = new DesktopScreenRegion(); Mouse mouse = new DesktopMouse(); Keyboard kb = new DesktopKeyboard(); String sikuliImagesPath = getSikuliImagesPath(); Target browseTarget = new ImageTarget(new File(sikuliImagesPath + browse.jpg)); ScreenRegion browseRegion = screen.wait(browseTarget, 5000); mouse.click(browseRegion.getCenter()); The selenium tests project is a Maven project and here is the Sikuli dependency in my pom.xml file: dependency groupIdorg.sikuli/groupId artifactIdsikuli-api/artifactId version1.0.2/version /dependency When I'm running the test from my IDE, a Firefox browser is launched and it's clicking on the button just fine. But when I run it from Jenkins, it's launching the browser on the same machine where it was previously working, but I get a NullPointerException, the button isn't found. It uses the exact same code, on the same machine and the same browser version and config. Do you have any idea why it's not working, can I provide any additional information that might be helpful? Thank you! -- 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 #263563]: Selenium test using Sikuli can't click on image when run from Jenkins
Question #263563 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263563 Status: Open = Answered aidma proposed the following answer: Could the problem be that Jenkins is running the browser as a background service. If the browser is not being displayed during Jenkins Builds, then Sikuli won't be able to see it. If this is the problem, you'll most likely need to run Jenkins from command prompt (java -jar jenkins.war) rather than as a windows service. See this link for more information: http://stackoverflow.com/questions/9618774/jenkins-selenium-gui-tests- are-not-visible-on-windows -- 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 #263580]: Would you like help installing the tesseract and integrate with Sikuli .
New question #263580 on Sikuli: https://answers.launchpad.net/sikuli/+question/263580 Would help to install tesseract and integrate with Sikuli showing the function calls to the otilização tesseract because I'm a little lost , sorry the English and thank you! -- 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 #263498]: How to open an saved excel file
Question #263498 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263498 RaiMan proposed the following answer: the package xlrd can be used as well, to programmatically access excel files. see faq: 2208 -- 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 #263498]: How to open an saved excel file
Question #263498 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263498 Status: Open = Answered aidma proposed the following answer: I'm not quite sure what's being asked here... Do you want to (1) use Sikuli to open the file within the Excel application, or (2) use Sikuli to access data within an Excel file (without ever opening the Excel Application)? If (1), then write a Sikuli script to open it. There are many ways to do this. A simple script that navigates to the icon, and then doubleClick()s it would suffice. Sikuli scripts have control over your mouse and keyboard. So if you can open the file with your mouse and keyboard then, in theory, so can Sikuli. If (2), then import a python library for handling Excel files. Remember: Sikuli scripts are written in the Python language. The Sikuli functions are great at doing visual things (moving your mouse, clicking, typing, etc.), but they aren't really made for accessing data from a file. If you want to grab data from an excel file in your script, I would suggest the following: - Save the excel file as a .csv - Create a Sikuli Script with the code: _CODE START_ import csv with open('INSERT-PATH-TO-CSV-FILE-HERE', 'rb') as csvfile: reader = csv.reader(csvfile, delimiter=',') data = [row for row in reader] #saves data to a 2D list print data #prints all data print data[0] #prints the data from the first row print data[0][0] #prints the data from the first cell in the first row _CODE END_ - You now have a script that saves the data from the CSV file in a 2 dimensional list named data -- 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 #263570]: Let sikuli scripts access their own resources even after imported
New question #263570 on Sikuli: https://answers.launchpad.net/sikuli/+question/263570 Im trying to separate some parts of my scripts to reuse it Lets say I have a script that do something with a screen, we will call that script1.sikuli, this script have folders inside it with images or text files that can be accessed inside this script using getBundlePath() + /subfolder. But when I import that script inside another, lets call that script script2.sikuli, getBundlePath() passes to point to the path of script2. How can I make script1 have notion of its own folder even after imported? I know how to hardcode that, getBundlePath() + /../script1.sikuli is any other better way of the script to know its own name even after imported? -- 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 #263533]: The Sikuli IDE closes and nothing happens on click
Question #263533 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263533 Status: Open = Answered RaiMan proposed the following answer: this version is no longer supported with respect to such problems. see: http://sikulix.com -- 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 #263536]: sikuli-ide scripts start slowing down after about 40 instructions.
Question #263536 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/263536 Status: Open = Answered RaiMan proposed the following answer: if it is ok for you: the easiest way is to send me a zipped file of your .sikuli silently to my mail at https://launchpad.net/~raimund-hocke (top left mail address). So I can have a look at it and decide how to proceed. If not, then you have to run your script from command line with options -d 3 -c and have a look at the output. -- 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