Hi All!!
I am starting to learn with RPA - Ui Path…
I have a runtime error – the notepad.exe not able to open when used in the Open Application Activity…
The exception is as follows –
Main has thrown an exception
Source: Open application ‘notepad.exe Untitled’
Message: Selector not found
Exception Type: COMException
Check the selector of Open Application activity if it is right. The attribute app in the selector should be app=‘notepad.exe’. Looks like yours is app=‘notepad.exe Untitled’
Hi @femina,
Use Open Application Activity
In properties. File Name "C:\windows\system32\notepad.exe" Selector "<wnd app='notepad.exe' cls='Notepad' title='*' />"
one more info… even when i tried to indicate it on screen, it automatically displayed my FileName path as C:\Windows\system32\notepad.exe which is incorrect because my system has the path C:\Windows\System32\notepad.exe
try “attack live element” inside the “open application activity” selector
property panel->target->selector select
inside you can find “attach live element” option
You need to supply selector for this activity and then populate Arguments property with full path of your file.
You can open your application (for e.g. Notepad) by using Open Application activity. Follow the steps:
Drag Open Application activity.
Use Indicate window on screen and indicate on Notepad window.
Following properties gets populated automatically.
a. FileName - “C:\Window\system32\notepad.exe”
b. Selector - "<wnd app=‘notepad.exe’ cls=‘Notepad’ title=’* - Notepad’ " (Use wildcard * for matching any file’s name)
Now fill the Arguments property with the full path of your file. For e.g. “D:\MyFolder\MyNotepad.txt”
Run the automation.
Thanks Rohit…
I tried all the options… It is not working on that particular machine… But was able to execute the same on other machine… But whats the problem which prevented it to work is not known…
I am also a newbie to UiPath, I have also faced the same problem as of you. I have resolved it.
Try to follow these steps in the Input Section of the Properties Window:
1.Create a text file on any location.(Here, I have created on Desktop) (Eg: NewTextDoc.txt)
2.Specify the location of the file as the value to the Arguments field.
(For Ex: Arguments = “C:\Users\Netcon-Prabhakaran.S\Desktop\NewTextDoc.txt”)
3.In the selector field change the value of the title element to the name of the text file you have created.(For Ex: Selector = "<wnd app=‘notepad.exe’ cls=‘Notepad’ title=‘NewTextDoc.txt - Notepad’ ")
4.FileName will be generated automatically so you no need to change that.
For your reference, I have attached the project file.Notepad.xaml (16.8 KB)
I have an additional question about this feature in UiPath. Whenever I use indicate window on screen to open an application UiPath cannot find the right path for this application. It always enters for the filename field “C:\Windows\explorer.exe” and the selector field: “”
I tried opening different apps with UiPath and for all of them, the input fields remain the same.
Please check whether the application you are running, points to the correct path location using “Open file Location” option available when you right click the app.(Note: This usually happens if the app has been been wrongly located, Check the shortcut of the app).
Once the above scenario is fixed,you will the exact location of the .exe file of the app in the Filename field and Selector field will be automatically filled. Alter the title elements based on the arguments that are required for your app.