Error - Target application in the foreground

Hi, i have a scenario… While bot is running in the client RDP & after processing it has to return to
our Local RDP(Local machine) & launch the chrome in browser & login into the web outlook… But am facing the below issue thrown by Bot

Throw: Webmail login issue - Cannot bring the target application in the foreground. The action was blocked by the current foreground window

Kindly share your thoughts…

Hi @Somanath_Somu ,
when robot running, have any other app running in background?
regards,

@Somanath_Somu

Try to use activate activity and check

Or are there any pop ups that are coming?

Cheers

Hi @Somanath_Somu,

You would suggest you to use the below order,

Use Foreground → Attach Window → Activate → After that you can perform the respective action.

Hope this will be helpful for you.

Thanks in advance,
Jayavignesh G

Hi

  1. Make sure that all other windows are closed before the bot tries to launch Chrome and log in to Web Outlook.
  2. Use the SimulateClick or SendWindowMessages property in the Click activity to allow UiPath to interact with the target application without bringing it to the foreground.

Thank you