Getting the following error in production environment: Cannot bring the target application in the foreground. The action was blocked by the current foreground window ‘’ from the process ‘explorer.exe.’
When I checked in the VDI where bot is running , there are no applications in foreground apart from SAP. Mostly I am getting this while the bot is executing Click operations. Kindly help resolve this.
If simulate or window messages work ten you would not get any issue
Other way is use a activate at the strt of every attach activity or use application/browser activity this ensures that the application is got to foreground before executing any activity
Also sometimes this might occur due to the updates pop ups that come from windows…ypu can try to turn them off…
‘Same as App/Browser’ means the activities using the same input method use application browser activity uses usually i.e., Chromium API. Change it to ‘Simulate’ for all the activites or change in the application browser.