Question
3
Replies
18
Views
Posted: August 31, 2020
Last activity: September 2, 2020
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).
Do you know how to solve this problem?
Thank you for your attention
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).