How to check svg pie charts and graphs using protractor?

I was wondering if anyone could guide me how to test svg charts and graphs using a protractor.

I need to read data on pie charts when hovering over it, or read data on charts when they freeze with data points.

A pie chart is very similar to the following, with the exception of text data. An example of two CHeck pie charts: http://www.fusioncharts.com/charts/pie-doughnut-charts/

+5
source share
1 answer

I get xpath data - although this is slightly different than usual. To access svg:

element(by.xpath('//*[name() = "svg"]//the rest of the path')) 
+1
source

Source: https://habr.com/ru/post/1215092/


All Articles