Problem works on studio pc but not on bot pc (IE and JAVA)

We have process that work fine on studio pc but when we publish it do not work on our robot pc (we use ie same version on both pc and we also use same version of java on both pc) this is error that we get bellow … (we have our licence it is not community) Please advise

  • Info: Cannot find the UI element corresponding to this selector:

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

  • Start Time: 02/19/2019 2:14:33 PM
  • End Time: 02/19/2019 2:15:22 PM
  • Input Values: Empty

Output Values: Empty

1 Like

@syedabidraza Can you help me with this ?

Sure , this is a selector error . It occurs if bot is not able to find the ui element .just check the point where it is occurring and modify the selectors

I already did that with several option taken with UI explorer. Everything works perfect in PC where is Studio, but on other PC where is Bot just stacked when need to input username…

It is clearly mentioned as “cannot able to find ui element corresponding to selector” , it’s not occurring because of UIPath studio in PC or VM.

Try this , just put take screenshot activity in catch part of try catch activity and see , where your bot stopping and which screen is open at that time or any popup appearing !!

1 Like

Hi,
I know exactly on which position the robot stops but I am confused why when I launch project on studio everything works perfect, but when I upload that project in Orcehestrator and set to robot (which is installed on other computer) use to work, is just stuck ???

1 Like

If we run same project on studio (manual run ) works but once we select as unattended bot then it do not work … any suggestions … Thanks

First thing , have you implemented "take screenshot " , because it’s not only to Know the position , it also help in recognizing if any popup appearing or any message appearing which is not handled .so , pls implement it.
Second thing , it can happen because may be you have given the UI element in the selector which is changing .
"Selector not found " is not related to studio or unattended bot scenario , if you believe that you are proceeding in wrong direction , in order of resolving it . :slight_smile:

Here are some common mistakes that cause VM automation to fail to find selectors:

— Some user profiles / machines will have the extension in the title of a window and some will not. You can wildcard the extension, for example, ... title='filename*" /> instead of ... title='filename.xlsx' />

— Some user profiles / machines will have the application name in the title of a window and some will not. You can wildcard that too, for example, ... title='*filename*" /> instead of ... title='Microsoft Excel - filename.xlsx' />

— Resolution from Orchestrator will be too small cutting out many elements from the screen. You can run your job with specific Resolution settings by using the “Launch Workflow Interactive” activity or preferably by setting this in your Robot settings in Orchestrator by going to Robots > Edit each robot > Settings > use your developed settings (probably width 1920, height 1080, depth 32)

For other issues, you will need to use Take Screenshot before the activity that fails, or in a Catch (as was suggested). This will show you if there are any popup windows getting in the way. Popup windows are another common theme among SelectNotFound exceptions. — the popups will either need to be programmed in or suppressed by adjusting the Internet Options. The reason your Studio machine would not see these is if your Internet Options are more optimized for automation (or you manually suppressed them at some point) rather your Robot machine has not had these things suppressed yet (first time popups, etc).

Hope this info helps also.

Regards.

See same error , he is looking for selector fix, because its related to selector . Hope u will work on selector fix.Let me know if any help require.

We found problem …it was java extension that need to be reinstalled … Thank you all for help

Please find the link to install Java Extension: https://studio.uipath.com/docs/installing-the-java-extensions and troubleshoot: Java Extension Troubleshooting

1 Like

Hi @nest387,

I am also facing similar issue where failure is seen in robot only environment involving Java applications.
As per the link shared about Installing Java applications, I have verified that Java extension is installed.
However I am still facing issue. Can you help with any additional steps required, or a detailed checklist to ensure JAVA + IE to work in Robot environment only.