Not able to find the UI element

Scenario:Hi I am new to UIpath and i am trying to automate a click on accordion on my web page

Steps to reproduce:

Current Behavior: when clicking on an accordion on my web page with tag <a class="accordion-toggle" data-toggle="collapse" data-parent="#sidebar-nav"><div class="menutitle" onclick="SwitchMenu('sub1')">Projects</div></a>

**I am getting this error message Cannot find the UI element corresponding to this selector: **Message: Cannot find the UI element corresponding to this selector: <webctrl aaname=' Projects' parentid='sidebar-nav' tag='A' />

Please suggest what should I use as a selector for this tag

Expected Behavior:

Studio/Robot/Orchestrator Version:

Last stable behavior:
Last stable version:
OS Version:
Others if Relevant: (workflow, logs, .net version, service pack, etc):

Hi Naveen,

You can use UIExplorer to capture proper selector make sure you keep the attributes those are stable in selector and remove the attributes those changes frequently. In your case you see what are all the attributes those will change each time in that page?
If you can share the web page link.

Thanks,
Girish

Thanks Girish for helping me out. But in UI explorer also i am getting the same selector.
<webctrl aaname=' &#x9;&#x9;&#x9;&#x9;Projects' parentid='sidebar-nav' tag='DIV' />. I wont be able to share the link because it would require user credential to access this web page the web page but I can share the screen shot of the accordion so that you can get an idea.

image

I have to click on project option which will expand with new option as below

image

then i have to select a project

Hi,

Remove anchor and tag use only Parentid

Can you use only this try once.

Hi @naveen_semwal,

Kindly change your selector to the selector below and let us know:
<webctrl aaname=' Projects*' parentid='sidebar-nav' tag='A' />

1 Like

Hi,

Was this issue ever resolved? I am getting a similar error and the solutions in this thread are not working for me.

Here is my current selector:

<webctrl aaname=' &#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;Done &#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;' idx='1' parentid='uploadFileDiv' tag='BUTTON' />

I tried shortening the aaname tag as suggested but it still isn’t being recognized.

image

If there are multiple links you can add idx attribute.

That doesn’t seem to resolve the issue. I assume it’s the aaname tag that is causing the issue. Another button on this webpage I need to access has a similar aaname tag. Is there anything else I should try? Using an anchor didn’t seem to work either.

Hi @sducey95,

Please try to insert * between Done and test it again.

2 Likes

I changed to ‘Done’ and it worked! Thank you so much for your help.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.