This one is a little obscure admittedly. What I'm trying to do is access highchart data from a selenium driven chrome instance via driver.execute_script
method and passing in javascript:
driver.execute_script("return $('#chartID').highcharts().series[0].data")
Selenium raises an error Selenium::WebDriver::Error::UnknownError
unknown error: Maximum call stack size exceeded
driver.execute_script("return $('#chartID').highcharts()")
driver.execute_script("return Highcharts.charts")
Both return the same error.
It should be noted that both of these javascript lines work in dev console in a non selenium instance of chrome.
This is the guide that I'm using: http://ahumbleopinion.com/highcharts-tips-accessing-chart-object-from-container-id/