我可以download
将文件{download
到默认子目录。
await page.goto('https://www.mysite-com/admin/order?_export_=page%3A1');
但是,当我使用以下代码指定下载子目录时,却没有下载:
await page._client.send('Page.setDownloadBehavior', {behavior: 'allow', downloadPath: './tmp/order'});
错误是:
Error: net::ERR_ABORTED at https://www.mysite-com/admin/order?_export_=page%3A1
< at navigate (C:\code\js\wbot\node_modules\puppeteer\lib\FrameManager.js:103:37)
< at <anonymous>
< at process._tickCallback (internal/process/next_tick.js:189:7)
我的木偶是1.9.0
。我在这里想念什么?