![]() ![]() ![]() ![]() I have a script made using node.js and puppeteer which downloads a file from a button (which doesn't redirect to a url), so right now i'm using await await page.waitForTimeout(1000) to wait for the download to complete but it has a few flaws, such as:ĭepending on the connection, the download might take more than 1000ms to finish, as well as it might take less, which wouldn't make sense to wait more than what took to finish the download. ![]()
0 Comments
Leave a Reply. |