downloads

  • Автор темы Автор темы dzair
  • Дата начала Дата начала

dzair

Client
Регистрация
23.11.2022
Сообщения
147
Реакции
177
Баллы
43
How to wait until download complete before moving to next action.
Note: I use browser for download not 'GET' method.
 
You can try WaitDownloading method:
C#:
Развернуть Свернуть Копировать
instance.ActiveTab.Navigate("https://www.example.com");
if (instance.ActiveTab.IsBusy) instance.ActiveTab.WaitDownloading();
 
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.
 

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