Notepad++ selector not found

Hi
UiPath version: community (latest)
Open Application
File name “C:\Program Files\Notepad++\notepad++.exe”
Selector:
<wnd app='notepad++.exe' cls='Notepad++' title='C:\Users\User\Documents\UiPath\output.csv - Notepad++' />
Or
<wnd app='notepad++.exe' cls='Notepad++' title='*' />

Error:

notepad has thrown an exception

Source: Open 'notepad++.exe C:\Users\...'

Message: Selector not found

Exception Type: COMException

System.Runtime.InteropServices.COMException (0x80040212): Selector not found
   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)

Please, help
Thanks

Try giving the title attribute of the selector as ‘* Notepad++’

Thanks for reply. Does not help

var2-sel

title=‘* Notepad++’

You modified the cls attribute!

Sorry. Does not help

Please try using Start Process activity instead of open application. That might just work.

2 Likes

Many thanks. Working.

1 Like

Hi ,
I am getting this error.

How to add notepad in selectors.
Thanks

Hi @Shruti_Dhond

Welcome to our UiPath Forum! :slight_smile:

You will want to replace any part of the selector that is dynamic with a wildcard.
* symbol will act as any character
Thus, in your case, you would want to replace the string New Text Document (2) - with an * , ending up with:
title='*Notepad'

This should allow you to find the selector :slight_smile: