libxdo

fake keyboard/mouse input, window management, and more using X11’s XTEST extension and other Xlib functions

file-dialog-automation

Intended to be used together with selenium to select a file in a file dialog