There is a web page with some svg graphs on dynamically generated. To make the situation more complicated - most of these graphs are displayed as jQuery pop ups on click or on hover. The task is to navigate to this page programmatically, scrap all the graphs (and some other info on the page), and save on disk, preferably as a single pdf or xml file.
The first thing I was going to try is webdriver or watir frameworks in ruby, but as appeared the build in functions only capture the whole page. What would be a good solution to capture only this on that div on a web page as screenshot? Any other frameworks that are more efficient for my goal?