Chrome restore page exception

Hi all,

can someone tell me if any UI Element is not getting captured using UI Path click activity, what to do

Example case in chrome browser at times we get that Restore page pop up and need to check if it exist then click on the close button or else click on other element but when I am using element exist then it is not capturing exact boundaries of that pop up and then when I m trying to use click activity to click on close button it is not identifying that close button

How to handle this exception


Welcome back to our UiPath community.

You can disable that restore pop-up permanently. Follow below steps.

Edit the file located at C:\Users\username\AppData\Local\Google\Chrome\User Data\Default

Right click “Preference” file and click edit. ctrl+f to find the following values, and change the value to:

“exit_type”: “none”,


Save the file, and change the attribute to “read only” so chrome can’t change it back.


Welcome back to uipath forum

In that case I would suggest to not select the entire box as a element while indicating for ELEMENT EXISTS activity

Indicate only the text. That is in that popup you will be having RESTORE as a text, select that text alone as a element
If not able to select that specific text alone then select the whole box and make sure the selector has only the stable attributes and uncheck all the dynamic attributes or replace them with wildcard symbols *
While doing so Usually element exists fails because of timeout or wait for ready
Apart from that it works perfectly fine

So set the timeout as 60000 and wait for ready property as NONE

And for this

Instead of click activity use a simple SEND HOT KEY ACTIVITY with key as esc and don’t indicate any element which means without any selector and just the key

And as another idea I would suggest to use a PARALLEL ACTIVITY where in keep a sequence of activities you want to perform in one side and as another sequence with element exists and this send hot key activity as another one

So if popup Comes at any point this PARALLEL activity will manage it

Hope this would help you

Cheers @ranshikasrivastava99

Thanks for the response but if end user doesn’t have this done with chrome, I need to handle this exception for generic code

Thanks for the response, let me try this and confirm back, this pop up doesn’t come every time so will just try again

1 Like

Thanks, esc worked with complete dialogue box selected


If this solution works and if there is no further queries it would be great if you can close this topic by marking the right comment as solution

Cheers @ranshikasrivastava99

It is quite frustrating that Google does not offer a simple solution to this.

My resolution was as follows:

Element Exists for the “Help make Google Chrome…” text
If for the boolean
Right click the “Restore” button (continue on error = True)
HotKey “Esc” for the restore button (continue on error = True)

As of some recent Chrome update (at least version 104.0.5112.81), this particular modal is no longer able to be directly interacted with by UiPath. Trying to indicate the element with UI Explorer returns the following error:

The selector returned for this item is

<wnd app='chrome.exe' cls='Chrome_WidgetWin_1' title='Restore pages?' />
<wnd cls='Intermediate D3D Window' />

UiPath can only see the widget itself as a whole, and cannot interact with any of the buttons or text within it. Every other element of Chrome automation is working fine.

The workaround I’ve come up with is to see if the above selector exists, and if it does, use a Click activity to just click in the center of the form and then using Send Hotkey to send an Esc keystroke. This works to dismiss the prompt and allow other browser automation to continue.

I have had considerable success with difficult selectors utilizing the Modern Experience. You can add the Modern Experience as an option for clicks, etc.

Project > Left click the Gear icon > Turn on the Modern Design Experience slider

Helpful links re Modern Design selectors:

What about forcing the browser to be “private-mode?” I believe that will force a “fresh” instance of the browser each time. We have this problem internally, our developers typically just add code like Element Exists to check for the restore popup. This popup is typically a result of crashed browser, or because you did a kill process activity on Chrome.

1 Like


“private-mode” creates a new fresh instance (from scratch) so, it could be tedious in some point like, pages which inherit form your SSO session.
Sometimes you will want a new fresh instance and sometimes not, JIC …

I’ve a configuration that lets me restart browser as-it-is without that pop-up:

  • Navigate to the following path: C:\Users<username>\AppData\Local\Google\Chrome\User Data\Default
  • Search Preferences file
  • Open file with notepad
  • Search the value “exit_type”:“Crashed” and change it to “exit_type”: “none”
  • Save & Close the preferences file
  • Right-click on the file and make it read-only else chrome will update this file again with initial values.

Its working like a charm for a year so, hope it helps :slight_smile: