downloads

dzair

Client
Регистрация
23.11.2022
Сообщения
18
Благодарностей
10
Баллы
3
How to wait until download complete before moving to next action.
Note: I use browser for download not 'GET' method.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 233
Благодарностей
5 846
Баллы
113
You can try WaitDownloading method:
C#:
instance.ActiveTab.Navigate("https://www.example.com");
if (instance.ActiveTab.IsBusy) instance.ActiveTab.WaitDownloading();
 

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
524
Благодарностей
112
Баллы
43
You can set a download directory and before download, delete and create it.
Now download and use directory file path with random file.
If file exists, continue, else, still wait.
Remember to check if downloaded file is a temp file or complete download, you can do it using a wildcard.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)