有什么比Sikuli更好的工具可用于Windows 7(或最好是多平台)的屏幕自动化 [英] What better tool than Sikuli to use for screen automation on Windows 7 (or preferably multi-platform)

查看:407
本文介绍了有什么比Sikuli更好的工具可用于Windows 7(或最好是多平台)的屏幕自动化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Sikuli 进行屏幕自动化.即根据屏幕上的外观单击GUI元素.没关系,但是Sikuli对我来说有一个主要的缺点:

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:

  • 每个脚本的启动缓慢(因为每次都加载整个JVM).

关于Sikuli的更多信息自去年以来没有发生太多进展,因此我正在寻找替代的自动化工具.我需要的最大门票是 creenwareness :该工具必须寻找"屏幕上的某些UI元素,而不是将鼠标移到那里并发出点击.

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.

是否有比Sikuli更快,更好的维护工具的建议?

Any suggestion for a faster and maybe better maintained tool than Sikuli?

推荐答案

如果要在Windows下自动执行任何操作,我建议您

If you want to automate anything under Windows, I would recommend you Automa - new lightweight GUI automation tool. It simply "finds" UI elements - all you need to do is to provide their names as human user would see them. And it's actually easier to use than Sikuli - you don't have take any screenshots. For instance, if you want to automatically sign in to Windows Live Messenger, you can run the following script:

start("messenger")
write("my.email@domain.com", into="Email address")
write("secret", into="Password")
click("Sign in")

或者类似地,为了键入凭据并自动登录到Facebook,您需要做的就是执行以下命令:

or, similarly, in order to type in credentials and automatically log in to Facebook, all you need to do is execute the following commands:

start("firefox")
write("facebook.com", into="Location")
press(ENTER)
write("my.email@domain.com", into="Email or Phone")
write("secret", into="Password")
click("Log in")

该工具可在大多数Windows应用程序(包括Web浏览器)上运行,无论使用何种技术.它都是用Python编写的,并且可以通过可导入的api库在任何Python应用程序中使用.

The tool works on most Windows applications (including web browsers), no matter what technology they are written in. It's written in Python and can be used from within any Python application through importable api library.

关于Automa vs Sikuli:Automa与Sikuli一样高级,但是不需要屏幕截图.这有几个优点:

About Automa vs Sikuli: Automa is as high-level as Sikuli, but does not require screenshots. This has several advantages:

  • 自动机脚本更易于存储在版本控制系统中.
  • 自动机脚本完全基于文本,使它们更易于维护:想象一下标签在某处发生了变化.该标签可能会出现在Sikuli的多个屏幕截图中,然后您必须重新拍摄这些截图.使用Automa,您要做的就是在文件之间进行简单的搜索和替换.
  • 相对于用户界面的更改而言,它更加稳定-想象一下颜色的变化或按钮仅移动了几个像素.
  • 其他不错的功能,例如能够在应用程序存在之前编写脚本/测试-您始终可以编写脚本,说单击此处",键入此名称,然后单击存在",这已经来自功能/程序的规范了.使用不可能的屏幕截图.

披露:我正在使用自动机.

这篇关于有什么比Sikuli更好的工具可用于Windows 7(或最好是多平台)的屏幕自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆