title: Puppeteer - Can't click on elements randomly
body: <p>I have an array of elements. I want each time to click on another element in the array. How do I do that? It's important for me to emphasize that <code>style[0]</code> must not be changed. I want to access element in another location for example: <code>element[0]</code> etc. Thanks for the help.</p>
  <p>HERE IS MY CODE:</p>
  <pre class="lang-js prettyprint-override"><code>await page.evaluate(() =&gt; {
    [...document.querySelectorAll(&quot;.pioscnbf&quot;)]
      .find(element =&gt; element.style[0].includes(&quot;background-image&quot;))?.click();
  });
  </code></pre>
  <p>I WANT TO CLICK ON <code>ELEMENT[0]</code>... <code>ELEMENT[1]</code>... randomly...</p>
  <p>Please help me,
  I want to click on this background of facebook:</p>
  <p><img src="https://i.stack.imgur.com/Ieifp.png" alt="enter image description here" /></p>