是否可以使用puppeteer(没有Web服务器)使用无头chrome打开本地html文件?我只能将它连接到本地服务器.
我可以看到setContent()api和goto()api和
automation unit-testing google-chrome puppeteer
我需要能够在加载Puppeteer的页面上拦截XHR请求并返回模拟响应,以便为我的Web应用程序组织无后端测试.最好的方法是什么?
automated-tests puppeteer
puppeteer ×2
automated-tests ×1
automation ×1
google-chrome ×1
unit-testing ×1