sikuli

What better tool than Sikuli to use for screen automation on Windows 7 (or preferably multi-platform) [closed]

只愿长相守 提交于 2019-12-02 18:02:50
I'm using Sikuli for Screen automation. i.e for clicking of GUI elements according to their appearance on the screen. This works all right, but Sikuli has one major disadvantage for me: Slow start-up for each script (because the whole JVM is loaded each time). Further more on Sikuli is not much development happening since last year, so I am looking for a replacement automation tool. The big ticket I need is creen awareness : The tool has to "look" for certain UI elements on the screen, than move the mouse there and issue a click. Any suggestion for a faster and maybe better maintained tool

What are strategies to construct reusable Sikuli screen shot libraries?

点点圈 提交于 2019-12-02 16:50:54
I would like to use Sikuli to automate both GUI apps and Web apps running within browser on Mac OS X and Windows. My purpose is currently less for testing, and more for GUI automation of tedious, repetitive tasks for a team that unfortunately doesn't have lower-level automation access at this time. I'm thinking that I'd like to build up one or more libraries of screen shots for the GUI apps and Web apps that I can reuse across projects. I'd often be running the same automation steps for different apps or, for Web apps, in different browser/platform combinations. What are some good strategies

Not Able to import PIL in Sikuli

邮差的信 提交于 2019-12-02 01:49:35
问题 I want to import PIL in Sikuli for doing that I have added the code below import sys sys.path.append("C:\\Python27\Lib\site-packages") sys.path.append("C:\\Python27\Lib\site-packages\PIL") import PIL import Image So it imported the above modules but when I am trying to import ImageFont, it's giving me the error below: def getmask2(self, text, mode="", fill=Image.core.fill): File "C:\Python27\Lib\site-packages\PIL\Image.py", line 39, in __getattr__ raise ImportError("The _imaging C module is

Not Able to import PIL in Sikuli

妖精的绣舞 提交于 2019-12-02 00:54:12
I want to import PIL in Sikuli for doing that I have added the code below import sys sys.path.append("C:\\Python27\Lib\site-packages") sys.path.append("C:\\Python27\Lib\site-packages\PIL") import PIL import Image So it imported the above modules but when I am trying to import ImageFont, it's giving me the error below: def getmask2(self, text, mode="", fill=Image.core.fill): File "C:\Python27\Lib\site-packages\PIL\Image.py", line 39, in __getattr__ raise ImportError("The _imaging C module is not installed") ImportError: The _imaging C module is not installed I am able to import PIL and Image

JRE_HOME not found on pip jnius installation

孤者浪人 提交于 2019-12-01 22:06:00
Trying to install jnius from pip (it is a requirement to pip install sikuli ). This is the error I get when I am trying to install: Are the variables correctly defined? Does anyone understand why it keeps saying that it can't find JRE_HOME ? Edit: My path variable is: The setup.py contains: jdk_home = environ.get('JDK_HOME') if not jdk_home: jdk_home = subprocess.Popen('readlink -f /usr/bin/javac | sed "s:bin/javac::"', shell=True, stdout=subprocess.PIPE).communicate()[0].strip() if not jdk_home: raise Exception('Unable to determine JDK_HOME') jre_home = environ.get('JRE_HOME') if not jre_home

Sikulix/Jython UAC automation

匆匆过客 提交于 2019-11-30 21:29:22
I was wondering if anyone had any luck automating through UAC pop-ups during installer automation? I have an existing Automated installer code but it fails at the UAC area due to Sikuli not using keyboard/mouse during this step... Anyone had any luck here? or no a way to do this in Jython? Thanks Eugene S The reason Sikuli doesn't work in this scenarios is because the UAC dialog is displayed in a "Secure desktop" which you can read more about here . Secure desktop prevents all interaction so even you attempt to take a screenshot of the UAC dialog itself, it will fail. That being said, there is

Paste command using Selenium

大兔子大兔子 提交于 2019-11-30 15:35:37
I'm using Python 2.7 and Selenium 2-44-0 on Windows 7. I'm looking for a quicker way of inputting text than using send_keys. Send_keys will print 1 letter at a time (which better imitates an actual user). I would like a way to print all of them out at once, as if the content was pasted. For example, Sikuli has the following functionality: paste("this will all populate the field at the same time") I'm wondering if there's a way to write a method in Python that will have the same result. So, instead of: el.send_keys("this will do 1 letter at a time") Have something like el.paste_keys("this will

Sikulix/Jython UAC automation

爷,独闯天下 提交于 2019-11-30 05:43:35
问题 I was wondering if anyone had any luck automating through UAC pop-ups during installer automation? I have an existing Automated installer code but it fails at the UAC area due to Sikuli not using keyboard/mouse during this step... Anyone had any luck here? or no a way to do this in Jython? Thanks 回答1: The reason Sikuli doesn't work in this scenarios is because the UAC dialog is displayed in a "Secure desktop" which you can read more about here. Secure desktop prevents all interaction so even

Sikuli Windows 7 64 bit : Getting the VisionProxy.dll: Can not find dependent libraries

时光怂恿深爱的人放手 提交于 2019-11-29 17:38:28
I am running a windows 7 64 bit machine. I installed JRE6 of 32 bit version in the PROGRAM x86 path. I have configured my JAVA_PATH environment variable in my windows to point to "C:\Program Files (x86)\Java\jre6" and the PATH variable to hold "C:\Program Files (x86)\Sikuli X\libs\;C:\Program Files (x86)\Java\jre6\bin\". Please dont ask my why, Because that is wat a lot of people suggested over the blog and i Just followed it. I Created a new project in eclipse and added the "sikuli-script.jar" and the JRE6 details . When I run a basic program, I am getting the below error message. import org

Sikuli UnsatisfiedLinkError when using sikuli-script.jar

走远了吗. 提交于 2019-11-29 16:02:25
I'm on Windows 7 32bit, Java JRE6 31 installed and using Sikuli X 1.0rc3. I want to launch a test with sikuli-script.jar like this: java -jar c:\sikuli\sikuli-script.jar test.sikuli All I get is this error message: java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError:C:\sikuli\libs\VisionProxy.dll: Can't find dependent libraries I have set all the environment variables needed, so my PATH looks like this: PATH=...;C:\sikuli\libs;C:\Program Files\Java\jre6\bin SIKULI_HOME=C:\sikuli I can use the IDE and launch the tests there etc. But only if I use the Sikuli-IDE.exe the sikuli-ide.bat