Saving full page content using Selenium -


I was wondering what is the best way to save all files by going to a site called Selenium. In other words, when Selenium visits I want to save the contents of HTML, Javascript (including scripts referred to in SRT tags), pictures, and possibly in iframes. How can this be done?

I know the HTML source () will return the HTML content to the body of the main frame, but it can be extended to download the full set of files needed to render that page again. thank you in advanced!

Selenium is not designed for it, either:

    < Li> Use getHtmlSource and parse the resulting HTML for references to external files, which you can download and store outside of Selenium.
  1. Use something other than selenium to download and store the offline version of a website - I'm sure there are so many tools that can do this if you do a search for example , WGet can download recursive ()

Is there a reason you want to use selenium? Is this part of your test strategy or do you want to find tools that will make an offline copy of a page?


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -