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

File Download Dialog hanging

1 Answer 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 14 Jul 2011, 08:17 PM
I'm having the exact same issue. Below are my attempts to get this to work. 

 

//Enter path to file location
string fullPath = "C:\\Temp";
//This code will only open the download dialog and click Cancel
DownloadDialogsHandler handler = new DownloadDialogsHandler(Manager.ActiveBrowser, DialogButton.CANCEL, fullPath, Manager.Desktop);
Pages.UMDealerBusiness_40.UserControl130DBIEXCELREPORTDOWNLOADBtnDownloadReportLink.MouseClick();
The above will open the File Download dialog and it will just hang until it times out.

I've also tried the code below 
string fullPath = "C:\\Temp";
Pages.UMDealerBusiness_40.UserControl130DBIEXCELREPORTDOWNLOADBtnDownloadReportLink.Download(false, DownloadOption.Cancel, fullPath, 10000);

The code above won't open the File Download dialog. The overall result is a success, but I don't believe the dialog is being called at all.

I've also trying the built in dialog handlers in the development edition of WebAii, but they react the same way the first piece of code does.

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 15 Jul 2011, 05:46 PM
Hi Alex,

This appears to be a duplicate of this forum post. We'll answer you there.

Greetings,
Anthony
the Telerik team
Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

Have you looked at the new Online User Guide for Telerik Test Studio?
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or