user3482804
user3482804

Reputation: 221

How to test svg pie charts and graphs using protractor?

I was wondering if some one could direct me how to test svg pie charts and graphs using protractor .

I have to read data on pie charts when hovered on it or read data on graphs when hovered to the data points .

The pie chart is very similar to following one except for the text data. CHeck 2D pie chart example: http://www.fusioncharts.com/charts/pie-doughnut-charts/

Upvotes: 6

Views: 4208

Answers (1)

Zach Folwick
Zach Folwick

Reputation: 921

I get the data by xpath - though it's a bit different than normal. To get access to svg:

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

Upvotes: 1

Related Questions