Hello, My customised selector is not working and got the below error message:
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,
IVariableResolver resolver)
— End of inner ExceptionDetail stack trace —
at UiPath.Core.Activities.TaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
Please suggest how to handle this issue, please find the screenshot as below:
Can you share how it looks in the UiExploler, you are getting an error because this selector does not exists, so probably you should use somewhere wildchars
OK i se the difference between those 2 selectors, In first one you don’t have a “space” before # char.
Try to Add star char “*” before “# Row” word. Probably this is the case.
I tried with new selector code given by you, i have added a check point for click event and debugged, still not able to click the check box , please refer the below screen shot:
Iam reading data from excel sheet and comparing with Data Grid (Data scrapping), so if the element matches, it should click the checkbox in my windows based application,for earlier two jobs it worked well, flow of the sequence as below:
Data scraping of datagrid & store as data table
Assign a counter=0
For each row Grid in Data table(application grid)
For each rowExcel in Excel data table
If rowGrid(2).ToString() = rowExcel(1).ToString()
Assign selector (Customised selector)
Click cell row Customised Selector in Target (Configured in properties)
OK, can you put selector i made to the write line just before click activity, and create breakpoint on it, then using step into, check what kind of selector it displays, then use UiExploler and check once again selector of element, compare those 2 values. Probably there will be one more difference which i couldn’t see while comparing screenshots.
Try to use retry scope activity and in condition use the element exists on this customized selector and if it is true then in action click the check box.