0

I am trying to use Puppeteer 18.1+ because older versions are no longer supported and I'm hoping it might fix the memory leaks I'm seeing. Apparently, I can't use CodeceptJS 3.2 with Puppeteer versions 15 and higher.

With CodeceptJS 3.3, I'm seeing a consistent problem. I.scrollTo() is given the CSS selector for a div that has a click handler. I.click() is given the same selector following I.scrollTo(). With CodeceptJS 3.2 and Puppeteer 13 and 14, this works. However, with CodeceptJS 3.3, I.scrollTo() scrolls the div above the top of the visible window. I.click() succeeds but the desired behavior of the click (it creates a modal) doesn't happen because the element isn't visible. I.forceClick() behaves the same way.

I reproduced this with Puppeteer 15 through 19 and Chromium 102 and 108 on Alpine 3.17 with NodeJS 18 (hydrogen). Alpine is running in a Docker container on an AWS EC2 instance.

Has anyone else seen a difference in the behavior of I.scrollTo() between CodeceptJS 3.2 and 3.3? This might be a Puppeteer 15+ issue.

Terris
  • 887
  • 1
  • 10
  • 15

0 Answers0