Hover a button in puppeteer

How to hover a button in puppeteer

Also trying to find out

document.querySelector('button').dispatchEvent(new MouseEvent('mouseover'));
BLOCK:PuppeteerExecuteJs
  expression = "document.querySelector('button').dispatchEvent(new MouseEvent('mouseover'));"
  => VAR @puppeteerExecuteJsOutput
ENDBLOCK
2 Likes