sikuli

Drag and drop with Sikuli

╄→гoц情女王★ 提交于 2019-12-04 07:03:23
I am having trouble using drag and drop with Sikuli. I would like to drag something in any other direction (up, down, left, right) for a fixed number of pixels. This looks like it should work: t = find("1325249963143.png") dragDrop(t, [t.x + 100, t.y + 100]) Sikuli IDE log says [log] DRAG (741,525) to null but the element is not dragged. This works just fine: dragDrop("1325249963143.png", "1325251471990.png") The log says [log] DRAG (741,525) to (507,490) What am I doing wrong? Environment: Mac OS X 10.7.2, Sikuli X-1.0rc3 (r905) RaiMan only to say hello here - an alternative coding: dragDrop

JRE_HOME not found on pip jnius installation

不羁的心 提交于 2019-12-04 04:33:22
问题 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: 回答1: 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

jnius 1.1 import error

扶醉桌前 提交于 2019-12-03 20:13:11
When I want to import jnius there is an error like: Traceback (most recent call last): ... File "C:\Python27\lib\site-packages\jnius\__init__.py", line 12, in <module> from .jnius import * ImportError: DLL load failed: The specified module could not be found. I need jnius in order to use: https://github.com/kevlened/sikuli_cpython What I have and use: Windows 7 Enterprise x64 Python 2.7.6 x86 Cython-0.19.2 jnius-1.1-dev JDK 7 Update 45 x86 Add the following to your Path environment variable (under "system variable"): C:\Program Files (x86)\Java\jdk[YOUR JDK VERSION]\jre\bin\server - or - C:

How to send “Ctrl + c” in Sikuli?

此生再无相见时 提交于 2019-12-03 09:21:03
问题 This feels like it should be pretty easy but I can't find documentation on how to do this: I just want Sikuli to type Ctrl + C to copy text to the clipboard. type(KEY_CTRL+'c') doesn't work and neither does type(KEY_CTRL,'c') . Any suggestions? 回答1: Try using type("c",KEY_CTRL) instead. I wrote a simple script which types a line in notepad, double clicks it to mark it and then ctrl+x ctrl+v it into the document again. Works great. openApp("notepad.exe") find("textfield.png" ) type("Some text"

What's the command to take a picture in Sikuli

巧了我就是萌 提交于 2019-12-03 06:09:42
I'm using Sikuli IDE. I'd like to know what the command to take a screenshot is, so I can capture the screen at the end of a test. Something like this try : if bla bla bla: print("blablabla") else: TAKESCREENSHOT() #------------------> What command do I put here? print("TEST_FAILED") The function is capture , as in screen = Screen() file = screen.capture(screen.getBounds()) print("Saved screen as "+file) It takes a screen-shot, saves it in a file, and gives you the path to that file back. See the Sikuli documentation on it for full details. HAL-9000 Cheap Sikuli trick for screencaps is to have

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

别等时光非礼了梦想. 提交于 2019-12-03 04:50:16
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm using Sikuli for Screen automation. i.e for clicking of GUI elements according to their appearance on the screen. This works all

What are strategies to construct reusable Sikuli screen shot libraries?

混江龙づ霸主 提交于 2019-12-03 03:23:12
问题 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

How to send “Ctrl + c” in Sikuli?

 ̄綄美尐妖づ 提交于 2019-12-03 02:28:41
This feels like it should be pretty easy but I can't find documentation on how to do this: I just want Sikuli to type Ctrl + C to copy text to the clipboard. type(KEY_CTRL+'c') doesn't work and neither does type(KEY_CTRL,'c') . Any suggestions? Jompa234 Try using type("c",KEY_CTRL) instead. I wrote a simple script which types a line in notepad, double clicks it to mark it and then ctrl+x ctrl+v it into the document again. Works great. openApp("notepad.exe") find("textfield.png" ) type("Some text") doubleClick("theText.png") type("x", KEY_CTRL) click("theTextField.png" ) type("v",KEY_CTRL)

How to get Sikuli working in headless mode

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: If we have a headless test server running sikuli (both ubuntu and windows configurations needed), how to get it work without a physical monitor and preferably for as many screen resolutions as possible. 回答1: I successfully got sikuli running in headless mode (no physical monitor connected) Ubuntu: check Xvfb. Windows: install display driver on the machine (to be headless) from virtualbox guest additions display drivers and use TightVNC to remotely set resolution from another machine. Detailed steps for windows 7 Assume that: Machine A: to be

How to integrate Sikuli scripts into Selenium?

偶尔善良 提交于 2019-12-02 22:51:58
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. See the Python section of the Selenium RC documentation: http://seleniumhq.org/docs/05_selenium_rc.html#python You may be able to run Selenium tests from Jython. In that case, you can simply integrate Selenium scripts into your Sikuli