Cannot Find UI Element in Java Application

selector
uiautomation
studio
java

#1

Hi All,

I am trying to run a report in a java application through a series of clicks and key strokes. As I go through the process, I open up a series of windows and select the correct parameters in each window. In the final window before I submit the report, I am having some issues typing the final parameter.

I get the following error:

Blockquote
Main has thrown an exception

Source: Type into ‘text File’

Message: Cannot find the UI element corresponding to this selector:

Exception Type: SelectorNotFoundException

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)
— End of inner exception 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)

Blockquote

When I try to select the field using UiPath Explorer, I get the following error:

Blockquote
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index.
Blockquote

Please advise. Thanks


#2

please go through the selector and make it stable by attaching to live element or by opening in uiExplorer


#3

Hi,

I am also getting same problem.
When I try to select the field using UiPath Explorer, I get the following error:
" Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index. "
And if I am trying from selector and attaching to live element or by opening in uiExplorer, I get the following error:
"Cannot attach to live Element "
Please advise.
Thanks


#4

I’m also having same issue when I try to capture the selector of the child element in java popup through uiexplorer
it is saying that "range is out of index"
If i try to change the dynamic values to * it is still unable to find them
not even once