Web Adapter methods don't work when running Bot in background/remotely
Hello Pega Team!
We are having issues trying to run a Bot that uses a Web Application. When having an active screen, the process runs well. However, when the automation is executed with a scheduled task, the Bot is not correctly executing certain methods (focus, sendKeys, activateWindow).
It is most likely that your lock screen is appearing. If your screen is locked, things like Sendeys are not possible (as a user wouldn't be able to perform those tasks either). If you can code your automation to not require focus or sendkeys or being active, then it may work when locked, however we always advise that you disable a lock screen for your bots. This is because we are automating an application in the method that a user would interact with it (which they cannot do while the screen is locked).
We are sure that our screen is not getting locked given that we disable the lock screen and besides, we are using Caffeine to keep our session up. Do you know an alternative method to replace the sendKeys method?
I am not familiar with Caffeine, but it seems to indicate it simulates mouse and keystrokes to keep a screen from locking. I do know that disconnecting an RDP session will lock the screen. Perhaps that is why the screen is getting locked. Are you using the RPA service to login to the machine?