title: Double click in Puppeteer using document.querySelector
body: <p>While using Puppeteer, a common error that occurs when some element is clicked is </p>
  
  <p><code>Node is either not visible or not an HTMLElement</code></p>
  
  <p>this has been addressed and solved <a href="https://github.com/GoogleChrome/puppeteer/issues/2977" rel="nofollow noreferrer">here</a></p>
  
  <p>however, the same solution fails for me when I try to simulate a double click using jQuery's <code>dbclick()</code> method</p>
  
  <pre><code>await page.evaluate(() =&gt; {
    document.querySelector('.some-selector').dbclick();
  });
  </code></pre>
  
  <p>error: <code>TypeError: document.querySelector(...).dbclick is not a function</code></p>
  
  <p>why???</p>