Not able to run first program


#1

I am not able to run my first program please help,
receiving following effort Main has thrown an exception

Source: Attach Window ‘T1 Notepad Notepad’

Message: Cannot find the UI element corresponding to this selector:

Exception Type: SelectorNotFoundException

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 exception 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)


#2

what this message indicate.


#3

Hi @Mraole,

It seem like selector issue, please refer below url to how to select the selector.
https://www.uipath.com/kb-articles/definition-example-uiexplorer?hs_amp=true

Regards,
Arivu


#4

Hi there @Mraole,
Regarding your initial point, it appears the selector you used to attach the windows (which appears to be null) was not able to be found at the time of execution.

Would you be able to paste the selector utilised within your attach?

Onto your second point, this message occurs when UiPath is unable to generate a reliable selector, as in, a selector that will be robust in and of itself.

As such, it prompts you to select an anchor, an element which has a reliable selector, so it can use that as a reference point.

Thanks in advance,
Josh