How to automate Bar Graph and Pie Chart and their tool tip using selenium webdriver + python

1,348 views
Skip to first unread message

Jitendra Wadle

unread,
May 1, 2015, 6:16:36 AM5/1/15
to seleniu...@googlegroups.com
Please help me 

Regards,
Jitendra wadle

murali seleniumtrainer

unread,
May 1, 2015, 12:00:18 PM5/1/15
to seleniu...@googlegroups.com
Hi,

As know, selenium is functional tool if i am not wrong, so if possible you can try by getting attributes which gives height, width etc.. i think you get tool tip by moving mouse to required point on graph..

Thanks,
http://seleniumtrainer.com/

Jitendra Wadle

unread,
May 4, 2015, 5:09:26 AM5/4/15
to seleniu...@googlegroups.com
I am not getting solution for that so plz help for same. Because the pie chart and graph is dynamic its change according to using system and i  am not find out the unique identification.

So any plz help me. 

Kumar Harshvardhan

unread,
May 5, 2015, 5:50:03 PM5/5/15
to seleniu...@googlegroups.com
There is no direct way, you can try below methods:

1. If you want to compare existing charts with new charts ( from regression point) , you can save earlier charts and can use sikuli to match it with the current chart. You can use sikuli in your selenium code by importing jars . But you will not be able to test it for current values .

2. If your application is using fusion charts , there is a methode called getdataascsv , or getdataasxml , these methods display the values of the charts and tool tips , you can ask your developer to include these methods and put an alert on it. In your selenium , you can use javascript executor and can call these functions and can pull the values from alert.

Thanks
Harshvardhan
Reply all
Reply to author
Forward
0 new messages