title: How to select an element by it's text with Puppeteer and Headless Chrome
body: <p>If I have a button that looks like this:</p>
  
  <pre><code>&lt;button type="button" class="list-group-item" style="cursor: pointer;"&gt;Button Text&lt;/button&gt;
  </code></pre>
  
  <p>I'm trying to click it with:</p>
  
  <pre><code>await page.click(&lt;button selector&gt;)
  </code></pre>
  
  <p>I can't use the full selector I get if I copy selector from Chrome dev tools because the exact selector can change. Is there a way I can select a button based on what it's text is? For example:</p>
  
  <pre><code>await page.click('Button Text')
  </code></pre>
  
  <p>I'm also not using JQuery, so please keep that in mind.</p>