- 分类:【工具使用】
- 浏览【201】
- 评论【0】
- 更新【2020-11-10 14:33:55】
puppeteer要模拟3G,4G网络需要利用DevTools Protocol。 Chrome DevTools Protocol page = await browser.newPage(); // 模拟3g网络 let cdp = await page.target().createCDPSession(); await cdp.send('Network.emulateNetworkConditions', { 'offline': false, 'downloadThroughput': 600 * 1024,//(b
阅读全文- 分类:【疑难杂症】
- 浏览【824】
- 评论【0】
- 更新【2020-6-15 12:36:50】
(node:9828) UnhandledPromiseRejectionWarning: TypeError: text is not iterable at Keyboard.type (D:\workspace\auto-ui\node_modules\puppeteer-core\lib\Input.js:160:24) at Keyboard. (D:\workspace\auto-ui\node_modules\puppeteer-core\lib\helper.js:112:23) at openBrowser (D:\workspace\auto-ui\
阅读全文