Author Posts

September 20, 2016 at 11:46 am

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.

  • This topic was modified 1 year, 12 months ago by  Neeraj Pandey.

September 20, 2016 at 12:39 pm

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.