I am prototyping a GUI test for a GTK application with dogtail and I have succeeded in opening a Window as shown below
import dogail
from dogtail.tree import *
import subprocess
subprocess.Popen("acme", shell=True)
app = root.application("acme")
app.child("Acme help menu").click()
app.child("About menu item").click() # creates About Window
## Trying to close the above Window
dogtail.rawinput.keyCombo('<Alt>F4') # does not work
How to I close or hide the About Window? The window itself has no user-created close button other than the one from on the title bar. I’d like to simulate a click on the close button on the title bar or send the sequence Atl+F4 but none of the options I’ve tried works (see above) .
I’ll happily settle for sending a GTK signal but I can’t figure out how to achieve this either.
I wonder if the title bar is the exclusive preserve of the windowing system.