I have created a UiPath process for downloading a file that involves a click activity on the save button in the UI. When I run the process, it works as expected. However, when I schedule the process in a virtual machine, it errors out as the UI element is not found. Can anyone help here? Thank you in advance.
Error at save as click activity UiPath.Core.SelectorNotFoundException: Could not find the UI element corresponding to this selector: [1] [2] Search failed at selector tag: [2] The closest matches found are: [71%] [71%] [70%] [70%] [69%] [69%] [69%] [69%] [69%] [69%]
Can you use a check app state activity first to see if your save as window is loaded or not,
once it is loaded use send windows message to send the file path in the filename field and then use a click activity with simulate enabled so that it’ll save it.
Thanks
You would have to fine tune the selector.
The closest matches found are: [71%]
Possibility is that your selector properties are not fully reliant, some of them are changing, can you verify that first.
Thats why UiPath came up with Unified selector approach.
How should I change the selector …I mean what modifications should I make in current selector…for your reference I have pasted it above
use the </>
format button from editor when sharing code snippets. We cannot see the details
I cannot see the selector anywhere, can you reshare the selector for that activity where you’re getting the error and a screenshot of the screen if possible.
Error at save as click activity UiPath.Core.SelectorNotFoundException: Could not find the UI element corresponding to this selector:\r\n[1] <webctrl id='WebApplicationFrame' tag='IFRAME'/>\n[2] <webctrl id='FileSaveAsPage' tag='BUTTON'/>\n\r\nSearch failed at selector tag:\r\n[2] <webctrl id='FileSaveAsPage' tag='BUTTON'/>\r\n\r\nThe closest matches found are:\r\n[71%] <webctrl id='ClearCells' tag='BUTTON'/>\n[71%] <webctrl id='ClearCells' tag='BUTTON'/>\n[70%] <webctrl id='FormatAsTableAlt' tag='BUTTON'/>\n[70%] <webctrl id='FormatAsTableAlt' tag='BUTTON'/>\n[69%] <webctrl id='CellStylesGallery' tag='BUTTON'/>\n[69%] <webctrl id='CellStylesGallery' tag='BUTTON'/>\n[69%] <webctrl id='FileMenuBackButton' tag='BUTTON'/>\n[69%] <webctrl id='ShowLineageClearHistoryDialog' tag='BUTTON'/>\n[69%] <webctrl id='FormatPainter' tag='BUTTON'/>\n[69%] <webctrl id='FindAndSelect' tag='BUTTON'/>\r\n at UiPath.Core.Activities.ObsoleteTaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)\r\n at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)",
Can you provide screenshots of your UI and UiExplorer for this selector
Unable to open your XAML.
Your Selector isn’t valid here,
You see that your end tag is saying a grouping role.
It’s not correctly identifying the selector of the save button
then how could I change this?
Indicate the element correctly on the Save as window.
That’s all I can tell right now based on the information that is provided in the posts above.
The selector should be something like this:
<ctrl name='Save' role='push button' />
Don’t use it as is what I wrote, try to find the correct selector it would be something like this.
SyntaxEditor Code Snippet(when I click on save button this how Iam getting)
<html app='chrome.exe' title='Yoptima Master_*.xlsx' />
<webctrl id='WebApplicationFrame' tag='IFRAME' />
<webctrl parentid='FileSaveAsPage' tag='SPAN' />
Try adding this as the last line.