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

IE: DownloadDialogsHandler not clicking on download file prompt

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 03 Nov 2014, 04:37 PM
Hi,
I'm trying to download a file that is generated from our site and when the "download file" prompt appears, telerik used to click on the dialog with the actual mouse cursor which would click on the Save As button.  This no longer happens.  If I help the test along and click on the Save As button in the download prompt, the Save As dialog comes up and I see that the file path is then entered into the dialog by the test.  From there it seems to move on correctly.  This used to work for us, but randomly just stopped for some reason.  Here's the code that I'm running:

DownloadDialogsHandler saveDialog = new DownloadDialogsHandler(browserWindow, DialogButton.SAVE, pathToFile + fileName, manager.Desktop);

manager.DialogMonitor.Start();

Logging.DocumentStepLevel("Click the button to export the report/file.");
ClickElement(browserWindow, xPathOfBrowseButton, true);

saveDialog.WaitUntilHandled(45 * 1000);



Computer Info:
Windows 7
Internet Explorer 10

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 06 Nov 2014, 11:51 AM
Hello Dan,

The code you are using should work correctly.

Please double check you have configured IE according to this article.

A Jing video of the behavior may also help us diagnose your issue.

Could you also give us a direct access to the application so we can try to reproduce the issue?

Looking forward to hearing from you.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Dan
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or