Get File Name from webpage

Hi There,

I am working on downloading file from a webpage. On click of link a javascript code is executed and file download starts.
So far I am able to download the file with

[pre]
$ie.getElementById(‘ctl00_ph1_rv_up_tcPM_CtrlTabHeader_fvReq_ctlFileID_ctlFileID_cmdName’).click()
[/pre]

Is there a way that I can capture the file name which is being downloaded here.

Thanks.

You don’t need to “capture” the file name if you’ve already figured out how to download it then the filename is most likely listed in the directory it was downloaded to.