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):
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=' 				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.
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.