puppeteer自动化测试系列之四---常见报错及解决方案 1.page.pdf()报错 PrintToPDF is not implemented undefined 解决方案:设置无头模式为true(默认为true),此方法不支持有头模式; 2.上传文件