I'm wondering, if there's a way to take a screenshot of any DOM-Element in javascript and save the screenshot image to a file. (for example for testing purpose ...; yeah I know I could use Selendroid, QF-Test, Sikuli, Sandstorm, and lot's of other, but I want to know how to do it in pure javascript)
I know, that I can take a screenshot from a canvas element: <canvas /> and print screen/screenshot and even take a complete screenshot of the site: Take screenshot of the whole webpage (and based on this there should be the possibility take a screenshot for a single/multiple component(s) only)
However, does anyone know how to save such an Element using the file api from HTML5 (to a location the user may select)?