Sending Esc keyboard shortcut to InPrivate Edge browser not working

When I go to URL in InPrivate browsing in Edge, it pops up the Windows Security window. If I hit escape key from my keyboard it works, but when I send ESC from the NKeyboardShortCuts activity nothing happens. Any idea of how to get this to work?

I’ve tried capturing the screen in CV Scope and using CV Click on the cancel button but that didn’t work either.

I’m using the InPrivate browsing to prevent SSO from login into SAP to force using login and passord.


Hi @kevin.clark

I think it might be because you have selected the container as entire page.

Try selecting container as element and then see if anything changes.

Alternatively, try to record the same by manually pressing esc key from your keyboard and see how it is getting recorded. That should shed some light in the issue as well :thinking:

@kevin.clark

Try adding one more use application browser activity inside your existing logic and indicate that security pop-up as window.

Inside this scope try using click activity to click on cancel. You can use keyboard shortcut activity as well.

Hello @kevin.clark,

Please try using Close Popup activity and provide the label cancel.

This may help.

Thanks,
Karthik

I did record the Esc, but still didn’t work. Also, I am unable to select the Windows Security pop up elements as when I attempt I get the message I need to run UiPath Studio with elevated privileges. When I run studio as administrator, it doesn’t connect to Orchestrator and I get error message saying my licensing has changed. I’m assuming running as admin is not seeing as running as me. This entire thing is so weird as on the surface it looks like this should be simple.

Looks like I will have to change to use Chrome instead of Edge. Sending the Escape key to Chrome browser closes the window.

Hmm.. that’s interesting :thinking:

I wonder what’s causing Edge to behave differently.

If there is no specific requirement to use Edge then yes it would be a good idea to use chrome as it’s working for you there.