protractor icon indicating copy to clipboard operation
protractor copied to clipboard

How to test svg pie charts and graphs using protractor?

Open snehacharkha opened this issue 11 years ago • 5 comments

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 .

snehacharkha avatar Mar 10 '15 21:03 snehacharkha

I am curious how it could be done correctly. When hovering over pie charts, the results are inconsistent and it complains about other element receives the click since pie chart are not a rectangle shape.

On Tue, Mar 10, 2015 at 5:02 PM, snehacharkha [email protected] wrote:

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 .

— Reply to this email directly or view it on GitHub https://github.com/angular/protractor/issues/1915.

jlin412 avatar Mar 10 '15 21:03 jlin412

Agreed according to the attached screen shot , the svg spreads across two other svgs . How can we garb the right path and hover on it screen shot 2015-03-10 at 3 05 38 pm

snehacharkha avatar Mar 10 '15 22:03 snehacharkha

Please read the contributing guidelines; these types of questions are ill-suited for GitHub. Thanks!

That said - can you add ids or classes to your svg elements to get a hold of them? They should act like other elements from WebDrivers' point of view.

juliemr avatar Mar 10 '15 23:03 juliemr

@snehacharkha Could you paste the link to your StackOverflow question when you will ask it please ? That's a very interesting one and I would like to follow the discussion. Thanks! :smile:

glepretre avatar Mar 11 '15 09:03 glepretre

Here you go :)

http://stackoverflow.com/questions/28973918/how-to-test-svg-pie-charts-and-graphs-using-protractor

On Wed, Mar 11, 2015 at 2:07 AM, Gilles Lepretre [email protected] wrote:

@snehacharkha https://github.com/snehacharkha Could you paste the link to your StackOverflow question when you will ask it please ? That's a very interesting one and I would like to follow the discussion. Thanks! [image: :smile:]

— Reply to this email directly or view it on GitHub https://github.com/angular/protractor/issues/1915#issuecomment-78227279.

snehacharkha avatar Mar 11 '15 17:03 snehacharkha