title: Saving full page content using Selenium
body: <p>I was wondering what's the best way to save all the files that are retrieved when Selenium visits a site. In other words, when Selenium visits <a href="http://www.google.com" rel="noreferrer">http://www.google.com</a> I want to save the HTML, JavaScript (including scripts referenced in src tags), images, and potentially content contained in iframes. How can this be done? </p>
  
  <p>I know getHTMLSource() will return the HTML content in the body of the main frame, but how can this be extended to download the complete set of files necessary to render that page again.
  Thanks in advance!</p>