cancel
Showing results for 
Search instead for 
Did you mean: 

MS Edge - How to best deal with Window alert notifications

Victor.Medeiros
Level 3

Could any one advise on how to best deal with Window Alert Notifications in MS Edge?

I took the pop-up route and created a separate object to deal with this but I cant seem to get application modeller to recognise/attach  to it. The only thing I was able to get to work was attaching to the main page and using AA via Windows application - however this does not seem to recognise the 'OK' button.

Links below to show how Window Alert Notifications work in Edge:

Window alert() Method (w3schools.com)

W3Schools Tryit Editor

35795.png

3 REPLIES 3

Babjee24
Level 7

Hi Victor,

The ideal way I feel handling these pop-ups is by passing Keystrokes on the window. Activate window and pass the keystrokes to ensure the window is on top of the screen and keys are passed to the exact required window.

Thanks,

Babjee Vangipurapu.

Babjee Vangipurapu
Senior RPA Developer
India

harish.m
MVP

Hi victor medios,

To handle this pop up in Edge.

I did some thing like below

Assume Launching  google - 'http://www.google,com"
1)  Instead of just website I usually add Force render accessibility at the end of the URL also  in App modeller
Ex: In URL - "www.google.com --force-renderer-accessibility" 


refer below article for the same
"https://bpdocs.blueprism.com/bp-6-9/en-us/Guides/chrome-firefox/chrome-firefox-uia.htm?TocPath=Guides%7CChrome%2C%20Edge%2C%20and%20Firefox%20integration%7C_____5#:~:text=To%20use%20UIA%2C%20accessibility%20mode,with%20Chrome%20and%20Edge%20browsers."

2) Try to spy the pop up in UIA mode,  - If it doesn't work try to create new object for pop up and make sure to detach the existing object 

3) By using new  object try to attach pop up( In attach action I used only Process name to attach it)  try ui mode along with browser mode
By following these steps mostly like  you are able to handle pop ups. 

As other member mentioned you can also use Send keys  like enter to click ok in the pop up shared in the screenshot. 

----------------------- If I answered your query. Please mark it as the "Best Answer" [FirstName] [LastName] [Designation] [JobTitle] [City] [State] [Phone]

Victor.Medeiros
Level 3

Thanks for the feedback Babjee & Harish,

After playing around with it I have found that the UI Automation Navigator seems to be able to find the Windows Alert Notifications elements. Not sure why I didn't think to use the Navigator!

35794.png