I am intending to automate the charts displayed in qlikview pages with selenium.As such charts are accessed as image as a whole in these pages its getting difficult to interact & locate specific elements/text on these charts.
Qlikview Demo link:- http://ap.demo.qlik.com/QvAJAXZfc/opendoc.htm?document=qvdocs%2FRetail%20Omni-Channel%20Analytics.qvw&host=Demo11&anonymous=true
Code to hover mouse over the chart:-
Point coordinates = driver.findElement(By.xpath("//div[@id='68']/div[2]/div[2]/img")).getLocation();
Robot robot = new Robot();
robot.mouseMove(coordinates.getX(),coordinates.getY());
Thread.sleep(5000);
Code to capture tooltip value:-
String Tooltip = driver.findElement(By.xpath("//div[@class = 'QvHover']/span[2]")).getText();
System.out.println("Tooltip value:- "+Tooltip);
Though I figured out a way to capture its tooltip value but other than this I'm unable to find ways to locate/capture other elements such as lables on the axis for line chart,legends,etc
Any help would be appriciated