Performing multiple page.hover() with Puppeteer

  javascript, puppeteer, web-scraping

I’m trying to simulate hover actions on several li nodes inside a navbar.

I want to do this because the hover event triggers other elements to appear, which I have to test with puppeteer.

However the page.hover(selector) method triggers only the event on the first element. As the docs explain here

Is it possible to somehow iterate the li elements and trigger the hover on all of them?

Source: Ask Javascript Questions