I'm using Selenium VBA and Chrome to download a csv file.
On some slower PCs, the browser closes before the download is complete.
I've used bot.Timeouts.PageLoad = 500000
and bot.Timeouts.Server = 500000
(where I've declared 'bot' as New ChromeDriver
earlier). That works when I need Chrome to wait until clicks on a link, finds an element, etc. but doesn't seem to have any affect when it comes to executing bot.Quit
Using the arbitrary bot.Wait (5000)
works, but on some PCs it doesn't need to wait this long, and sometimes it needs to wait longer.
Is there any way I can get Chrome to wait until the download is complete before running bot.Quit
?