If Storefront is configured with Windows/Forms auth, the script must first click 'switch to username and password' before entering credentials. See: https://community.squaredup.com/answers/question/citrix-logon-simulator-2/