browser-pool
browser-pool copied to clipboard
Randomly unfocused tab makes interaction halt
Sometimes the browser tab (using Chrome) will be in the background, and it seems that it's being throttled. This is a known issue with Chromium, but first tab, that is about:blank shouldn't be the one focused.
It seems that both page.evaluate and page.on('response') freeze / stop calling the event listener when this happens
Might be a racing condition between loading and focusing the tab

Puppeteer or Playwright?