Compatibility with Google Chrome Keeps Failing?

I used to be able run my rpa without issue, but now I’m having some major ones. The steps are simple and are just grabbing someones name from an Excel, searching it on a website, and copying the results back into the Excel.

It runs great for the first 1-2 iterations. But after the first couple it seems like the compatibility with Chrome just stops. It will fail and when I check the selector, it’s suddenly invalid and when I try to reselect the text box or button on the webpage, it will only let me select the entire page and not any individual element.

Does anyone have any ideas on what’s going on? Why does it work perfect the first few searches and then suddenly chrome is incompatible? The chrome addon is fine because it works the first few times (and I even tried reinstalling it).

@dswee898

Welcome to the community

If you close and open will it work normally?

If so can you check during automation is there some key stroke that is causing the issue

Is it a corporate laptop? If so are there some apps or so which are blocking UiPath extension to stop

Can you check the even viewer logs when this issues occurs to see if there is any specific error to any app when you see this behaviour

Cheers

Post a screenshot of your code from a high level. I suspect you have something inside a loop that should be outside of it. For an example of what I mean, consider this:

For Each File in Folder

  • Excel Process Scope
    – Use Excel File
    – Read Range
    – Do some things with the data

This means the Excel Process Scope is repeated when it doesn’t need to be. The For Each File in Folder should be inside the Excel Process Scope.

If I close everything it will work normally the first iteration. The process opens a new instance of Chrome after each iteration and navigates to the website. On the 2nd or 3rd iteration the simple click button will stop working.

Yes its a corporate laptop

The error is:

UiPath.Core.SelectorNotFoundException: Could not find the UI element corresponding to this selector:

at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Thanks but I don’t think thats it because it used to work perfectly for the past year. However the last piece which is the Excel Application scope is in the for loop because after it writes to Excel it then goes to the next person to search.

And what I’m saying is this is incorrect and could be causing memory drain or other issues that could in turn affect UiPath.

How would I fix this? If I take it out of the scope of the loop it and then have it write to the Excel at the end, it will only write the data for the final search and not the others.

Also not sure why it is suddenly not working since it’s been working for over a year.

You still do the actual write inside the loop. Instead of…

  • For Each
    • Excel Process Scope
  • – Use Excel
  • — Write Range

You would do…

-Excel Process Scope
– Use Excel
— For Each
---- Write Range

An even better way to do the entire thing is…

  • Excel Process Scope
    – Use Excel File
    — For Each Row in Excel
    ----- Perform steps in web page to collect data
    ----- Use Assign CurrentRow(“zzzzzzz”) = “extracted value” to update the Excel file

Note that in the last case, you also want your Use App/Browser on the outside of the loop.

@dswee898

May I know why a nee instance is being opened for every iteration?

Also is the old instance closed? If not that might pose an issue

Cheers

I just discovered this only happens on 1 of the websites my process goes to. The other websites still work fine.