While downloading .xls files, I get below error (Chrome browser) though file getting download and saving the correct path specified.
Timed out waiting '80000' msec. for download dialog to be handled.
InnerException:
System.TimeoutException: Timed out waiting '80000' msec. for download dialog to be handled.
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DownloadDialogHandlerDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
Kindly help how to handle this.
12 Answers, 1 is accepted
Please check in the Chrome settings - if the option "Ask where to save..." is enabled. See the attached screenshot for a reference. If it is not checked the browser will download automatically the file not using the file download dialog and the "Handle..." step will fail.
I hope this will solve the issue.
Regards,
Nikolay Petrov
Telerik by Progress
Hi Nikolay,
I have checked "Ask where to save each file before downloading" and I do mention the download path in Handle "Download" dialog.
still I am getting the same error as mentioned above. ( attached screenshots)
Let me know I am missing something here.
Thanks,
Priyanka
It is possible that the dialog did not appear when the test step is trying to handle it. To make sure that this is not the case you may try to put an execution delay step from the Step builder or to rise up a bit the initialization time of the dialog step. See at the attached screenshot for a reference, please.
If this does not help, make sure that you are using latest product version (2017.1.207) and latest Chrome extensions available in the app store.
Let me know if this solves the issue.
Regards,
Nikolay Petrov
Telerik by Progress
Hi Nikolay,
Still no luck, I installed TS version (2017.1.207) and latest Chrome extensions, end up with same error.
Yes, my excel sheet is downloading and saving at the path mentioned but download handle pop up not opening up and TS throws error here.
Thanks,
Priyanka
I reproduce this problem if the "HandleTimeout" of the step was the one you have set in the test. Try to increase the "HandleTimeout" property of the 'Handle "Download" dialog' step to 30000 msec.
I hope this will solve the issue.
Regards,
Nikolay Petrov
Telerik by Progress
Thank you Nikolay Petrov. It solved my problem. Now "Handle 'Downlaod' step is passing on both browsers IE11 and Chrome.
Thanks for your patience and help!
I'm glad to know that. You're most welcome.
Regards,
Nikolay Petrov
Telerik by Progress
Hi Team,
I am getting the error "Timed out waiting '25000' msec. for download dialog to be handled" when i tried to download the pdf file. The file is downloaded and saved on the location but its still giving the error, and I am using chrome. Here are the screenshots attached.
Hello Dipti,
I am sorry to know you are having troubles with the Download dialog in Chrome and will be happy to assist you with that.
First thing to mention, though, is that you are referring a post, which dates back more than three years and the current troubles you have may be related to something else.
So, to get familiar with the current details on your end, please, let me know your input on the below topics:
- Which version of Test Studio you are using?
- Update Test Studio to the latest available version and let me know which it is?
- Which version of Chrome you are using?
- Check the Project settings and if Chrome is calibrated?
- If using the latest Test Studio 2020.1.331, use the Restore button against the Chrome browsers, and then Calibrate again.
- In case these actions do not change anything in the behavior, please, generate an application log during the failing run - enable/clear the logging, start the test run and wait for it to fail, then collect the logging and send it zipped via this thread.
- Prepare a screenshot of the Browsers tab in the Project Settings.
Thank you for your cooperation in advance. I am looking forward to hearing back from you.
Regards,
Elena
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.
Sorry for the late response, but after downloading the latest version of telerik its working fine for me. But i have one more question that every time a file is downloaded I want that it should be saved with the name, for now it takes the downloaded path as name of the file, as I want download the file automation process for at least 5 hours. Screenshot is attached for reference
Hello Dipti,
I am glad to know that handling the dialog is working for you now.
As far as I understand you would like to have a different name for the file by each test execution - is that correct?
If so, you can prepare the name of the downloaded file in a coded step, so that this is unique each time and then assign this value along with the folder path into the File Name field of the step.
To accomplish this, you will need to get familiar, if not already, with the feature in Test Studio to use extracted variables in a coded step. Within the coded step you can generate that random name for the file and assign it to a variable along with the folder path.
Once you have this variable, you can data drive the Download path field of the download dialog.
Please, take the time to review the suggested solution and let me know if you need further assistance.
Thank you in advance for your cooperation.
Regards,
Elena
Progress Telerik
Hi Guys,
I didn't want to open new topic because I have the same problem. I have a Handle 'Download' Dialog with "SAVE" button. It has worked for years and in last month it fails. I tried all above. Have newest version of Telerik. Using Chrome and Win11
1. The Dialog will open
2. Path will be entered correctly
3. File is saved
4. Test step fails with timeout error :(
I already tried to increase handle dialog timeouts but it fails every time. If I use "CANCEL" button instead of "SAVE" than it passes.
Have you any good advice please ?
Hi Tibor,
I am sorry to know you experience any issues and will be happy to assist you with sorting out this.
There are few important things to clarify and I will appreciate if you take the time to follow up on the below list of topics:
- Which is the Test Studio version you currently have?
- Is it the same on the machine where the test fails?
- Which is the browser version you currently have?
- I guess this is calibrated successfullly, so, please, just confirm this?
- Which mode of the browser you use - with extension or without?
- What is the path you use to download the file? I don't need the complete path, but to understand if it is in any of the Windows user default locations like Desktop or Documents.
- Have you tried to run the test against another browser - Edge, for example? How does it behave?
I am looking forward to hearing back from you.
Regards,
Elena
Hi Elena,
1. 2023.1.329.1
2. yes
3. Chrome Version 111.0.5563.111 (Official Build) (64-bit)
4. calibrated
5. with extension
6. no system or windows folders. Path is acquired automatically from Code step. Outcome is mostly something like C:\Telerik Automation tests\
7. I have tried Edge with the same result.
Hi Tibor,
Thank you for following up with these additional details.
The misbehavior you observe is quite odd - we are testing the dialog handling for each new browser version so that we can be up-to-date if they apply any changes in the dialogs structure. So, I can confirm that there are no current issues with the dialogs including the download file one.
To help me continue the analysis I will need some more details from your end. Please, take the time to collect the below resources:
- For the current setup you use run the failing test and collect the complete failure details and send the zipped folder.
I am not sure what type of run you perform (single test quick run or a test list execution), but you can use the Export button in the failure details to get the complete set of detai;ls. - Generate the application log during the run from step - please, clear it before that and then collect it once the test fails.
- Switch to extensionless mode and run the test again - what will be the outcome? Does the test fail?
Please, have in mind that the file download handling looks a bit different in the extensionless mode of the browsers - you will not see the actual dialog to appear and the list of downloaded files at the bottom of the browser remains. However, the file should be downloaded in the location listed in the step.
And since I'm asking for some resources, which might contain sensitive information, please consider submitting a private thread if necessary.
Thank you for your cooperation in advance and let me know in case you have any other questions.
Regards,
Elena