venkatesan_G02 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,


I am accessing a web page using WWW::Selenium module and i succedded in accessing the page successfully by creating the code. But i need to save final html page in my local PC for further analysis. I went through the documentation for www::selenium but could not find anything to save the content of the page returned. Is it possible to save the content of the returned page using www::selenium because it is the only module that suites my criteria.


Hearty Thanks for all those who takes time to help me out.

Replies are listed 'Best First'.
Re: Saving a page using www::selenium
by marto (Cardinal) on Sep 14, 2009 at 16:05 UTC

    As mentioned in the CB (repeated here in case you missed or forget any of it) I've not used WWW::Selenium yet (sadly I've not had a chance to play around with it yet). The method get_html_source will return the html source code of the current page. I suppose you could save that to a file but I'm pretty sure that Selenium may be able to offer a better solution, such as using the browsers 'save as' functionality which tends to save things like graphics, css and JavaScript files too.

    See also download a file from the Selenium COER FAQ.Selenium IDE also looks interesting, perhaps in conjunction with WWW::Selenium::Utils, though I don't have time to look at this any further at the moment.

    Martin

Re: Saving a page using www::selenium
by Anonymous Monk on Sep 14, 2009 at 16:01 UTC
    get_html_source?