Session variable used in DownloadFile command

I have a scraping session that extracts the URL for a download file and saves in a session variable.

How can I reference this variable in the script below - this is not working??

session.downloadFile( "~#url#~", "C:/file.csv", 5, true );

Tommie

The script syntax is a little

The script syntax is a little different

session.downloadFile(session.getVariable("url"), "C:/file.csv", 5, true );