sikuli

How to import the sikuli module in python?

对着背影说爱祢 提交于 2019-12-22 09:03:51
问题 I'm having trouble getting sikuli+python unit testing to work, and would be glad for some assistance. I searched the internet far and wide, but haven't anything that worked. My python knowledge is very limited, and I guess that doesn't help... I'm using win7 32, sikuli 1.0 rc3 (r905), python 2.7.3 I'm trying to start running sikuli unit tests through python (not with command line, just as a python script to run with the python gui). I've followed, among others, the instructions shown here:

How to integrate Sikuli scripts into Selenium?

自古美人都是妖i 提交于 2019-12-20 10:29:45
问题 I'm extensively using Selenium for integration testing. Works great for all normal stuff (HTML/AJAX), but no go when I'm trying to test third party ActiveX, Java applets and Flash components. The solution I've found for this is Sikuli. Works great locally, but how can I integrate that into Selenium? btw. if that's relevant, for Selenium I'm using Python API. 回答1: See the Python section of the Selenium RC documentation: http://seleniumhq.org/docs/05_selenium_rc.html#python You may be able to

Sikuli Integrator C#

a 夏天 提交于 2019-12-20 05:44:10
问题 I want to use SikuliIntegrator in C#. I run VS as administrator, install SikuliIntegrator throught NuGet manager and want to test him on simple task. Heres my code using SikuliModule; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SikuliTrainingNet { class Program { static void Main(string[] args) { string MyPicture = @"c:\111\Sik\MyPicture.png"; SikuliAction.Click(MyPicture); } } } after running code (and have

Paste command using Selenium

孤者浪人 提交于 2019-12-18 17:03:28
问题 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,

using Python logger class to generate multiple logs for different log levels

谁都会走 提交于 2019-12-17 06:51:27
问题 I looked through the tutorials for the python logging class here and didnt see anything that would let me make multiple logs of different levels for the same output. In the end I would like to have three logs: <timestamp>_DEBUG.log (debug level) <timestamp>_INFO.log (info Level) <timestamp>_ERROR.log (error level) Is there a way to, in one script, generate multiple log files for the same input? <-------------UPDATE #1--------------------------> So in implementing @robert's suggestion, I now

How to retrieve code from .sikuli folder?

我是研究僧i 提交于 2019-12-14 03:54:38
问题 When I open a .sikuli folder, it only has images in it. So I want to know whether there is any way that I can see or retrieve the Sikuli code without using Sikuli IDE. Can I get to it from a .sikuli folder? 回答1: According to the documentation: A Sikuli script (.sikuli) is a directory that consists of a Python source file (.py), and all the image files (.png) used by the source file. All images used in a Sikuli script are simply a path to the .png file in the .sikuli bundle. Therefore, the

Sikuli, selenium testing on Jenkins: Allow the browser to be launched in the foreground, as it is when i run it from development machine?

烈酒焚心 提交于 2019-12-14 00:54:51
问题 The issue is that Sikuli's image recognition capabilities only work when the target of the Sikuli tests is in the foreground and it has full access to the mouse. In its current configuration, Jenkins projects are never visible from the desktop of the windows slave node. The way my current automated testing suite is setup right now, about 30 tests are written using only selenium. In the final two tests, selenium starts a webdriver (currently chromedriver but can be firefox or IE) and navigates

How to generate report using sikuli for desktop application

拜拜、爱过 提交于 2019-12-13 07:04:12
问题 I automated an application using sikuli. Now the program is full of image (usual sikuli program), I want to generate the final report for the test cases. I can only see the option for robot framework to generate the report. I don't know python. How can I do that without robot framework? Can you jus guide me with the steps to do that? if there is no option guide with the normal way. Thanks 回答1: You can try one of those two: HTMLTestRunner can be used by adding this script (and the .py file) to

How do I get sikuli to wait until the mouse pointer changes from “busy” to “not busy?”

白昼怎懂夜的黑 提交于 2019-12-12 17:22:28
问题 I interact with a GUI application both locally and remotely (via a VPN). When I work with it locally, most actions happen pretty quickly and my sikuli scripts execute fine. However, when I work with it remotely, actions take longer to complete. That is, Sikuli may detect the screen and elements to wait for, but the cursor is still "busy" (e.g. the spinning circle in windows). This results in my sikuli scripts breaking when working with the application remotely due to the increased "lag" (not

How to apply if else condition for SikuliLibrary with RobotFramework?

梦想与她 提交于 2019-12-12 10:29:09
问题 I'm using SikuliLibrary with RobotFramework for automating windows desktop application. One case is like: sometimes you need to put login credentials sometimes not, So I have to apply if else condition for SikuliLibrary with RobotFramework? I mean if login screen appear then will put credentials otherwise not. as it is image based So, I'm unable to apply if else condition. 回答1: You could have the login executed unconditionally, in a Run Keyword And Ignore Error block, and continue if it (the