I want to make a script based on Python that can automate key press, mouse actions etc. as if they are entered manually.
Some packages or modules known : PyAutoGUI, XLib wrapper
Similar to the above, is there any package available from GI family that allows automation ? (At least that works in X11 or Wayland or GNOME desktop)
Workaround I have for now :
I managed to get windows using Wnck. Then using their XID, I got the X11 Window using GdkX11. After that I could put the events using Gdk.Display.put_event.
But the process of making Gdk.Event is confusing me. (What properties should be set, how they should be initialised etc.)
Any other module or idea or way you have for simulating actions ?
Thanks in advance
The code on that page is only for gtk+2, but I’m currently working on a gtk3 version and would be happy to share it.
I was told on this site that the event logging approach to GUI testing was not the way to go, but I haven’t found a better solution, and this method is working for me (so far).