The action was blocked by the current foreground window '' from the process 'explorer.exe.'

Hi All,

I am working with a web application and the sign-in has a SSO login page as well. I am trying to launch the web page in Chrome incognito mode, but when I am trying to close the SSO login window and trying to type the username in the main window to login. But failing with the below error.

Exception Occurred in module - Login Exception Message: Cannot bring the target application in the foreground. The action was blocked by the current foreground window ‘’ from the process ‘explorer.exe.’ Exception Stack Trace: at UiPath.UIAutomationNext.Extensions.ExceptionExtensions.GetFriendly(COMException comException) at UiPath.UIAutomationNext.Extensions.ExceptionExtensions.ThrowFriendly(COMException comException) at UiPath.UIAutomationNext.Services.DriverServiceCore.WrapCom[T](Func1 toExecute) at UiPath.UIAutomationNext.Services.DriverService.ToForegroundInternal(IUiNodeX uiNode, Boolean setFocus, Nullable1 timeout) at UiPath.UIAutomationNext.Services.DriverService.Activate(IUiNodeX uiNode) at UiPath.UIAutomationNext.Services.ActivityActionService.<>c__DisplayClass55_0.<b__0>d.MoveNext() — End of stack trace from previous location —

Hi @sarathi125,

When you are using your browser activity to open web page, there in options-browser under properties section, please select incognito mode. This will ensure your url directly opens in incognito mode and you will not have any sso login web page.

Regards
Sonali