I know this question has been asked before on S.O. and other websites but I haven't found a definite answer -- most of them say its not easily done but I wanted to make sure that was the final verdict.
Here's my situation:
I'm testing a website that is using Highcharts (http://www.highcharts.com) using Selenium WebDriver (Java).
I basically want to grab the information that is displayed in a small tooltip pop-up that appears when you hover your mouse over each datapoint on the Highchart's line graph.
Looking at the web page's HTML code, I noticed there is
<g class="highcharts-tooltip".... I also noticed that, as you move your mouse, the
(X,Y) values in
...transform="translate(X,Y)"> change, which then changes the information displayed in the tool tip.
Knowing this, my approach would be to somehow grab all the
(X,Y) values and plug them into the
transform fields and grab the tooltip data. But I don't know how to programmatically grab all the
(X,Y) values through Selenium.
Has anyone tackles this issue in the past or has a better way to grab the necessary information?
I also asked this question on StackOverflow - http://stackoverflow.com/questions/14202731/selenium-webdriver-and-highchart-testing