getContentAsString
String scrapeableFile.getContentAsString ( )
Description
Retrieve contents of the response.
Parameters
This method does not receive any parameters.
Return Values
Returns contents of the last response, as a string. If the file has not been scraped it will return an empty string.
Change Log
Version | Description |
---|---|
4.5 | Available for all editions. |
Examples
Log Response
// In a script run "After file is scraped"
// Sends the HTML of the current file to the log.
session.log( scrapeableFile.getContentAsString() );
// Sends the HTML of the current file to the log.
session.log( scrapeableFile.getContentAsString() );
scraper on 07/16/2010 at 4:55 pm
- Printer-friendly version
- Login or register to post comments