I was thinking about what is the best way to save all the files that are retrieved when you test an application using Selenium. In other words, I would say, when Selenium visits www.edureka.co I want to save HTML, JavaScript (including scripts referenced in src tags), images, and the content contained in the iframes. How can this be done?
I know this method getHTMLSource() will return the HTML content in the body of the mainframe, but how can this be extended to download the complete set of files that are necessary to render that page all over again?