This is a migrated thread and some comments may be shown as answers.

Reading File Name from Download Dialog

3 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
VVP
Top achievements
Rank 2
VVP asked on 30 Jun 2015, 06:05 AM

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 

 

3 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 03 Jul 2015, 06:06 AM
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!
0
VVP
Top achievements
Rank 2
answered on 03 Jul 2015, 06:22 AM

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

0
Ivaylo
Telerik team
answered on 06 Jul 2015, 01:26 PM
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!
Tags
General Discussions
Asked by
VVP
Top achievements
Rank 2
Answers by
Ivaylo
Telerik team
VVP
Top achievements
Rank 2
Share this question
or