I am not able click on the specific element, which is in the image format. I have tried using available locators i.e id
and image
using XPath and remaining locators are same for all remaining menus.
Below is the HTML code. In the below code class locator is same for all other menus. How to automate this type of scenario?
<a href="#" class="nav-link nav-toggle" onclick="OnReportImageClick()">
<img src="/Images/reports.png">
<span class="title">Reports</span>
</a>
The XPath I have tried is //*[@id="ReportsView"]
.