title: How to click on elements returned from page.evaluate?
body: <p>How can I click on elements returned from <code>page.evaluate</code>?</p>
  
  <pre class="lang-js prettyprint-override"><code>const allCategoryElements = await page.evaluate(() =&gt; {
    const allElements = [...document.querySelectorAll(".mySelector")];
  
    return allElements.filter((element) =&gt; {
      const ul = element.querySelector("ul");
      return !ul || !ul.children.length;
    });
  });
  
  for (const categoryHandle of allCategoryElements) {
    await categoryHandle.click(); // ERROR: categoryHandle has no click method
  }
  </code></pre>
  
  <p>Basically, what I want is an array of elements that I can then click on (OUTSIDE OF THE EVALUATE). Elements need to be of type ElementHandle, if I'm correct.</p>