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

How yo handle Chrome default download dialog in the bottom please?

3 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lei
Top achievements
Rank 1
Lei asked on 21 Feb 2017, 02:36 AM

Hi there,

In Chrome, when we download file, it will save the file to user's download profile directory by default.

In this situation, after file is successfully downloaded, a banner, or a dialog will appear in the bottom of Chrome(like the attached screen shot).

I want to know, how could I recognize and handle this dialog?

Background: when I download In chrome, our application does not give a generating or downloading message, thus, I am not able to wait until this message gone, so i am not bale to tell when it's finished. I have to keep eyes open for this bottom dialog. When this dialog appears, code would know download is finished. And I don't like to wait for a hard coded time...which is pretty bad, because sometimes the file is big, hard coded time may not enough.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 23 Feb 2017, 03:36 PM
Hi Lei,

In general this banner can not be handled by Test Studio since it is not part of the DOM of the application. 

If the test execution depends on the file downloaded - it is possible to check if the file exist in a coded step. Here is an article on how the existence of the file can be verified in C# code.

I hope this information is helpful.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Lei
Top achievements
Rank 1
answered on 24 Feb 2017, 08:41 AM

Thank you for the reply.

It's a nice work around. Haven't thought about it before. Thanks again, have a good day.

0
Nikolay Petrov
Telerik team
answered on 01 Mar 2017, 07:56 AM
Hi Lei,

I'm glad it helped.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Lei
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Lei
Top achievements
Rank 1
Share this question
or