Citrix Logon Simulator
Note: I recommend you to read the following post but if you're only interested by the script: here it is.
Edit 6/27/2022: Sometimes, selenium can be a bit annoying. I found version 3.8 of the package resolves the issue. Pyautogui as well has somme issue