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

Timed out error for download dialog to be handled.

12 Answers 449 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
priyanka
Top achievements
Rank 1
priyanka asked on 10 Feb 2017, 10:38 AM

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

Sort by
0
Nikolay Petrov
Telerik team
answered on 14 Feb 2017, 04:14 PM
Hello Priyanka,

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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
priyanka
Top achievements
Rank 1
answered on 14 Feb 2017, 05:08 PM

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

 

0
Nikolay Petrov
Telerik team
answered on 15 Feb 2017, 04:43 PM
Hello 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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
priyanka
Top achievements
Rank 1
answered on 15 Feb 2017, 05:50 PM

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

0
Nikolay Petrov
Telerik team
answered on 17 Feb 2017, 08:26 AM
Hello 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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
priyanka
Top achievements
Rank 1
answered on 17 Feb 2017, 11:09 AM

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!

0
Nikolay Petrov
Telerik team
answered on 20 Feb 2017, 02:10 PM
Hi Priyanka,

I'm glad to know that. You're most welcome.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Dipti
Top achievements
Rank 1
answered on 05 Jun 2020, 02:40 PM

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.

0
Elena
Telerik team
answered on 08 Jun 2020, 08:52 AM

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: 

  1. Which version of Test Studio you are using? 
  2. Update Test Studio to the latest available version and let me know which it is?
  3. Which version of Chrome you are using? 
  4. Check the Project settings and if Chrome is calibrated
  5. If using the latest Test Studio 2020.1.331, use the Restore button against the Chrome browsers, and then Calibrate again.
  6. 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. 
  7. 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

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Dipti
Top achievements
Rank 1
answered on 13 Jul 2020, 10:18 AM
Hi Elena, 

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 
0
Elena
Telerik team
answered on 14 Jul 2020, 03:29 PM

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

0
Tibor
Top achievements
Rank 1
Iron
answered on 05 Apr 2023, 01:51 PM

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 ?

Elena
Telerik team
commented on 06 Apr 2023, 11:07 AM

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:

  1. Which is the Test Studio version you currently have? 
  2. Is it the same on the machine where the test fails?
  3. Which is the browser version you currently have?
  4. I guess this is calibrated successfullly, so, please, just confirm this?
  5. Which mode of the browser you use - with extension or without
  6. 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
  7. 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

Tibor
Top achievements
Rank 1
Iron
commented on 11 Apr 2023, 06:59 AM

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.

Elena
Telerik team
commented on 13 Apr 2023, 09:56 PM

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:

  1. 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. 
  2. Generate the application log during the run from step - please, clear it before that and then collect it once the test fails. 
  3. 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 

Tags
General Discussions
Asked by
priyanka
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
priyanka
Top achievements
Rank 1
Dipti
Top achievements
Rank 1
Elena
Telerik team
Tibor
Top achievements
Rank 1
Iron
Share this question
or