Get File Name from webpage

This topic contains 1 reply, has 2 voices, and was last updated by  Dan Potter 1 year, 2 months ago.

  • Author
    Posts
  • #54304

    Neeraj Pandey
    Participant

    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, 2 months ago by  Neeraj Pandey.
  • #54310

    Dan Potter
    Participant

    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.

You must be logged in to reply to this topic.