ruby - Watir Testing Highcharts with only 1 Path element -


i have issue testing highcharts watir when graph has 1 path element. when u hover through line on graph coordinate of path element changes. how can loop through line? example demo = http://www.highcharts.com/demo/line-time-series

one way of doing using xpath on graph. using firepath add-on on firefox browser, when move mouse through graph have different xpaths each position. like

browser.element_by_xpath(".//*[@id='highcharts-0']/svg/g[6]/g[2]/path[2]']").click 

and pick value need. doing this, may not have accurate xpath every position in graph serve need.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -