Reading File Name from Download Dialog

4 posts, 0 answers
  1. VVP
    VVP avatar
    61 posts
    Member since:
    Mar 2015

    Posted 30 Jun 2015 Link to this post

    Hi,

     

    When i click on download option in my application, i get a popup saying "Do you want to open or save file.xls" from some website. 

    Is there any way to read that file name in the popup (Image.jpeg) or in window which appears after Clicking Save as button in dialog(SaveAsWindow.jpeg).

     Kindly let me know 

     

  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 03 Jul 2015 Link to this post

    Hello,

    Unfortunately this is not possible.

    Why you are doing this, what is the purpose of this request? If you provide more information we can think of a workaround that we can provide.

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. VVP
    VVP avatar
    61 posts
    Member since:
    Mar 2015

    Posted 03 Jul 2015 in reply to Ivaylo Link to this post

    Hi, In my application there is an export button ,clicking on which will download the contents in screen to a .xls file.

    So i have to verify

    1) The default file name appearing on "Image.jpg" screen attached in my post.

    2) In chrome, "Image.jpg" don't appear but directly the screen shown in "SaveasWindow.jpg".

    Hope i am clear .Else please let me know.:)

    Thanks,

    VVP

  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 06 Jul 2015 Link to this post

    Hello,

    The workaround you can use is to handle the download dialog using code. This way you specify the full path to the download location and you will not have to do the verification. Here is an article you can follow.

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top