How to click on Graphs and Pie Charts in Selenium webdriver

Having coding issues, clicking on graphs in selenium. code creates a pie chart as follows, 

How to click on Graphs and Pie Charts in Selenium webdriver

 

The code is as follows, <canvas id=”canvas_pie1″ height=”346″ width=”578″ class=”chartjs-render-monitor” style=”display: block; width: 578px; height: 346px;”></canvas>

 

It is a canvas created by typescript in ionic framework, need to click on this graph using webdriver.

Xpath is //*[@id=”canvas_pie1″]

 

Any suggestions.

Default Asked on May 1, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.