An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: ----> System.Runtime.InteropServices.COMException: Cannot find the UI element corresponding to this selector:
at UiPath.UiNodeClass.FindFirst(UiFindScope scope, String nodeID)
at UiPath.Core.UiElement.FindFirst(FindScope scope, Selector selector)
— End of inner ExceptionDetail stack trace —
at UiPath.Core.Activities.ScopeActivity.EndExecute(NativeActivityContext context, IAsyncResult result)
at UiPath.Core.Activities.AsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: ----> System.Runtime.InteropServices.COMException: Cannot find the UI element corresponding to this selector:
at UiPath.UiNodeClass.FindFirst(UiFindScope scope, String nodeID)
at UiPath.Core.UiElement.FindFirst(FindScope scope, Selector selector)
— End of inner ExceptionDetail stack trace —
at UiPath.Core.Activities.ScopeActivity.EndExecute(NativeActivityContext context, IAsyncResult result)
at UiPath.Core.Activities.AsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
I am still having issues with this. Repair worked on the higher block… but, continues to fail in the following steps. I am trying to run through Lesson_4-Practice_1 given in the UIPath Academy Level 1 - Foundation Training - 2018.3. The solution has several references to:
(Note: values have changed as I tried to understand what’s happening here)
As long as the window is opened and unsaved… I am able to correct the issue. However, the practice solution is written to start a new notepad section and I am not clear what’s driving the cls and ctrid values… I haven’t figured out how to debug this issue.
Is there a solid explanation of sectors and their properties?
Hi @ralpheward,
I believe you need to know the difference between partial and full selectors. Additionally there are attributes which are different for every run of the application. Those you need to avoid in your selectors cause it will provide the error on every next run of the workflow/activity.
Thank you Pablito… I have made it through this section and trying to figure out Lesson 5 - Practice 1 now… it just isn’t working and I am about to pass to the next subject.
Understanding how selectors work is crucial, so I would recommend going back. The most common issues I saw are different ids as mentioned by @Pablito, and not using wildcards in relevant parts of your selector. Just an example:
wnd app=‘notepad.exe’ cls=’#32770’ title=‘Font’
This selects an application named notepad.exe with “Font” in the title. Go ahead, save the file under a new name - your selector will no longer be valid (as it keeps looking for Font, but now your file is named “Foo”). This can be fixed quite easily by adding a wildcard to the title, or by omitting this attribute altogether.
To avoid this error while selecting the notepad do not select the saved one. Open a new notepad and leave it, then open Uipath and now select unsaved notepad so it avoids the error by having the title as default value ‘untitled’
Else change the title field in the code by replacing with * wildcard operator (If you press validate it errors out but it works as* is an wildcard operator) "<wnd app='notepad.exe' cls='Notepad' title='*' />"