In my old 2016 UiPath project I recorded clicking on a dropdown listbox of Invoice dates and then “type into” a Down arrow to select the next invoice. This has been working for years. However in the new version of UiPath, once the listbox is selected and I click the download link, it comes back with the second date in the main field. Apparently UiPath considers the value of the field to be its name, and since the value is now different, it can no longer find the field so I can’t “Type Into” another Down keystroke to get the next invoice. The old version clearly did NOT use the value of the field to find it. So I must be doing something wrong. How can we identify a dropdown listbox regardless of the contents?
In this case the listbox has descending dates beginning with 7-3-2019. First I download the default invoice no problem. Then click the listbox to change the date to 7-2-2019 and click Download, no problem. But now the listbox has 7-2-2019 as the default, so when I try to click it again to down arrow for the third invoice, it fails to find the element because the selector no longer works. Here is the error:
Source: Click ‘SPAN’
Message: Cannot find the UI element corresponding to this selector:
Exception Type: UiPath.Core.SelectorNotFoundException
RemoteException wrapping UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: —> RemoteException wrapping 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 exception stack trace —
at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Any advice greatly appreciated! Thank you.