getCurrentURL

String scrapeableFile.getCurrentURL ( )

Description

Get the URL of the file.

Parameters

This method does not receive any parameters.

Return Values

Returns the URL of the scrapeable file, as a string. If called after the file has been scraped the session variable tokens will be resolved to their values; otherwise, the tokens will simply be removed from the string.

Change Log

Version Description
4.5 Available for all editions.

Examples

Collect URL

 // In script called "After file is scraped"

 // Stores the current URL in the variable currentURL.
 currentURL = scrapeableFile.getCurrentURL();