Also in python programming the pyautogui module only works with X11.
AFAIK XWayland is still supported, and pyautogui should work fine in XWayland.
Edit: Nevermind, thought it was some gui framework, it's more like xdotool.
As far as I know it's not even possible at all in Wayland to make mouse and keyboard automations.
You can, you just can't use the X11 tools, because it's not X11. Look into ydotool for a universal option, or there's kdotool for kwin.