Is there a Python equivalent to Java's AWT Robot class? [closed]

不羁岁月 提交于 2019-11-27 05:05:53

If you have GTK, then you can use the gtk.gdk.Display class to do most of the work. It controls the keyboard/mouse pointer grabs a set of gtk.gdk.Screen objects.

Check out GNU LDTP:

GNU/Linux Desktop Testing Project (GNU LDTP) is aimed at producing high quality test automation framework [...]

Especially Writing LDTP test scripts in Python scripting language

Fred Larson

As far as the screen grab, see this answer. That worked for me. Other answers to the same question might be of interest as well.

Check out the RobotFramework. I do not know if it will do the same things as JavaRobot, or if it will do more. But it is easy and very flexible to use.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!