qahive / robotframework-puppeteer

Puppeteer Web testing library for Robot Framework
Apache License 2.0
56 stars 14 forks source link

Mock api during page on load cause all download resource freeze #77

Open atthaboon opened 3 years ago

atthaboon commented 3 years ago

Describe the bug run mock api will require page interception in chrome. await page.setRequestInterception(True) This will cause all download resource freeze if page still loading the resource

To Reproduce Steps to reproduce the behavior:

  1. Goto https://angular.io/
  2. run mock api
  3. check network resource found download pending

Expected behavior mock should not freeze any download

atthaboon commented 3 years ago

Still issue under puppeteer library. https://github.com/puppeteer/puppeteer/issues/5003

Work around: Need to mock API before page load