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() );