matmanjs / matman

Web 端对端测试(E2E,End-to-End Testing)解决方案
https://matmanjs.github.io/matman
MIT License
46 stars 10 forks source link

Cannot take screenshot with 0 width. #227

Open helinjiang opened 3 years ago

helinjiang commented 3 years ago

Error: Protocol error (Page.captureScreenshot): Cannot take screenshot with 0 width.
    at /Users/helinjiang/gitprojects/epc-tapd-helper/node_modules/puppeteer/lib/Connection.js:156:63
    at new Promise (<anonymous>)
    at CDPSession.send (/Users/helinjiang/gitprojects/epc-tapd-helper/node_modules/puppeteer/lib/Connection.js:155:16)
    at Page._screenshotTask (/Users/helinjiang/gitprojects/epc-tapd-helper/node_modules/puppeteer/lib/Page.js:762:43)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
  -- ASYNC --
    at Page.<anonymous> (/Users/helinjiang/gitprojects/epc-tapd-helper/node_modules/puppeteer/lib/helper.js:116:19)
    at PuppeteerRunner.runActions (/Users/helinjiang/gitprojects/epc-tapd-helper/node_modules/matman-runner-puppeteer/lib/PuppeteerRunner.js:283:33)
    at async PuppeteerRunner.getResult (/Users/helinjiang/gitprojects/epc-tapd-helper/node_modules/matman-runner-puppeteer/lib/PuppeteerRunner.js:338:24)
    at async run (/Users/helinjiang/gitprojects/epc-tapd-helper/src/epc-score/obtain-data/obtain-ep.js:127:26)
    at async runOnlyOneWithLog (/Users/helinjiang/gitprojects/epc-tapd-helper/src/epc-score/obtain-data/obtain-ep.js:171:27)
    at async Object.runOneByOne (/Users/helinjiang/gitprojects/epc-tapd-helper/src/epc-score/obtain-data/obtain-ep.js:201:7)
    at async Object.runObtainEP [as obtainData] (/Users/helinjiang/gitprojects/epc-tapd-helper/src/epc-score/obtain-data/index.js:11:3)
    at async /Users/helinjiang/gitprojects/epc-tapd-helper/jobs/epc-score-obtain.js:6:3