Could not find the user-interface (ui) element for this action

when i used to click to add new ongle in ubuntu, it appears this error that uipath could not find the user-interface element for this action.
PS:before this damage everything work good when i run it execute the workflow successfully.Suddenly i dont really know what is going on,why this error it appears!

please can someone help me with this.

Hi @asma_lahmer
Welcome to the UiPath Community!

If you’re getting this error, it most likely means that the selector for your target application has changed. This could happen due to a multitude of reasons, which is why it may help to make it a dynamic selector (Fuzzy selector).

To make getting help easier, can you please post some screenshots of the problem?

thanks for your reply.

@asma_lahmer
This certainly looks like a selector issue. It’s possible that the VM Player window has some value that changes on each login or each refresh.
Can you please share the Selector and Fuzzy Selector for this Click activity? It should be available under Properties tab (on the right edge of Studio)

there is nothing in the selector and fuzzy selector

Dynamic selector and Fuzzy selector are not the same thing. Dynamic selectors include variables to build the selector using data from the variables. Fuzzy selectors simply allow partial matches to the selector. You can also have a dynamic fuzzy selector.

1 Like

okay i understand,but in my case i dont know what is the problem !

The problem is probably in the title. If you don’t have any other vmplayer.exe windows open at that time, you can unselect the title from the selector editor and see if it works.

no nothing is changed it doesn’t work

Looking at your action before that, when it types into the field values are supposed to populate below, and you’re attempting to click on that populated value, correct?

It looks like your typing action worked fine, so did it populate a value to click on? If you’re seeing the value and UiPath is erroring, maybe the action is trying to quickly before the value appears to click. I’d try adding 2000 to the Delay Before property of this value to see if that helps.

Which could ultimately be caused by your “URL” Variable being null.

thanks for your reply but the delay doesn’t solve the problem.i think that is all about the selector but i dont know what is it!

I just noticed the screenshot of your selector properties are for the “Type into” action. Can you provide the selector properties of the “Click” action that is failing?

nothing in the selector found

@asma_lahmer
Given that your Selector and Fuzzy Selector are blank (and looking at the screenshots) it seems that the robot is clicking the entire window for the Type Into activity, which will not work, because it is not an editable element.

Please try to modify the selector so that it can actually see the text field in which you want to type.
Also, when running this in Debug mode, you can use Debug tab → Highlight Elements option, which highlights the target element before each step, so you know what the robot is trying to interact with.

I repeat all the workflow from the begining and its work.i dont know why the selector sometimes work and sometimes not!
The problem is resolved,Thank you all for your help.

1 Like

As @NervYerem mentioned, you should try making your selector more generic to match the only open vmplayer window.

For example, try removing the title entirely or changing its value from:
title='vm-ubuntu_fuller1234 - VMWare Workstation 16 Player (Non-commerc*
to:
title='*VMWare Workstation*'
This will match the window with a higher probability.

Please read a little more about selectors to clear any doubts:

1 Like

This does work. It just sends the keystrokes to the app window, and the app window handles where the text goes - so you’d have to click the element first to put the cursor there. I do this all the time with Citrix apps.

Thank you for your second correction in the same thread. You always have so much to teach :slight_smile:

I repeat all the workflow from the begining and its work.i dont know why the selector sometimes work and sometimes not!

This makes me think there might be something else the matter. I don’t see issues come and go with selectors often. If you use a bad selector while creating, chances are that once it stops working it wont start working again because whatever you references is changing, like an ID.

Your “URL” variable that’s being used in the “type into” activity, is it static or do you have something fetching/creating that URL?

1 Like

its a problem of communication between windows and Vm ubuntu it’s a security issue that’s why i face this problem