Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user

Not able to click on menu using selenium webdriver javaSelenium WebDriver Java

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 xpathXPath 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 xPathXPath I have tried is //*[@id="ReportsView"].

Not able to click on menu using selenium webdriver java

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

Not able to click on menu using Selenium WebDriver Java

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

Bumped by Community user
Bumped by Community user
deleted 17 characters in body
Source Link
corsiKa
  • 7.1k
  • 7
  • 40
  • 53

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. Please help me guys. 

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

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. Please help me guys. 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"].

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

fixed HTML format and typos, added OP's xpath from comments
Source Link

I am not able click on the specific element  ,which which is in the image format.I I have tried using available locators i.e idid and imageimage using xpath and remaining locators are same for all remainigremaining menus  .Please Please help me guys.Below Below is the htmlHTML code.In In the below code class locator is same for all other mnenusmenus.How How to automate this type of scenario...? Reports

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

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 remainig menus  .Please help me guys.Below is the html code.In the below code class locator is same for all other mnenus.How to automate this type of scenario...? Reports

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. Please help me guys. 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"].

Source Link
Loading