lucacasonato/deno-puppeteer

page.hover seemingly not working

kemicofa opened this issue · 1 comments

To reproduce:
https://github.com/kemicofa/deno-puppeteer-hover-example

I'm trying to cause a color change on hover over one of the buttons on my website

From:
Screenshot 2022-01-16 at 15 32 40

To:
Screenshot 2022-01-16 at 15 33 19

However, through deno-puppeteer the color stays the same using the following code:

const browser = await puppeteer.launch();
const page = await browser.newPage();

const url = 'https://sweet-snake-49.deno.dev';
await page.goto(url);
await page.setViewport({
    width: 1600,
    height: 1200
});
await page.hover('#left');
await page.screenshot({ path: Deno.cwd() + '/example.png' }); 

await browser.close();

Closing as this issue is also happening in a nodejs project.