Re: How do I extract JS and CSS links from a web page?
"Wolfgang Fahl" <[email protected]> Thu, 12 Feb 2009 16:58:19 +0100
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Organization | BITPlan GmbH |
| Message-ID | <[email protected]> |
Dear Stephen, thank you for your mail. I'm sorry for not getting back to you any sooner. Orignally i had intended to look into the details of this and give a response to you. Since I wasn't able to do this i'm wondering how you made progress in the meantime, what responses you got (if any) and whether others would like to get this issue solved. Yours Wolfgang > > Hi, > > I'm hoping to use HttpUnit to check our application sets response > headers appropriately (especially for caching). To do this I expect to > > 1. Issue a GET request for http://myapp.com/index.html > 2. Interrogate the WebResponse to extract links to images, css and > javascript > 3. Issue GET requests for each image, css + js file > 4. Re-issue the GET request and assert the response code is 304, and > approprate expires / last modified headers are set. > > However I'm having problems obtaining the css and js urls. WebResponse. > getExternalStyleSheet() only returns the first declaired stylesheet, and > I haven't jet found a way to extract links to scripts. > > Any help appreciated, > > Thanks, > > Steve BITPlan - smart solutions Pater-Delp-Str. 1, D-47877 Willich Schiefbahn Tel. +49 2154 811-480, Fax +49 2154 811-481 Web: http://www.bitplan.de bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, Geschäftsführer: Wolfgang Fahl ------------------------------------------------------------------------------ _______________________________________________ Httpunit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/httpunit-develop