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 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.



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


then i have to select a project



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' />