Is it possible to take a screenshot using Selenium WebDriver?
(Note: Not Selenium Remote Control)
driver.takeScreenshot().then(function(data){ var base64Data = data.replace(/^data:image\/png;base64,/,"") fs.writeFile("out.png", base64Data, 'base64', function(err) { if(err) console.log(err); }); });