title: Attempting to click on a button but not working for me
body: <p>I have the following code:</p>
  
  <pre><code>&lt;div class="pt6-sm pb6-sm ta-sm-r d-sm-flx flx-jc-sm-fe"&gt;&lt;button class="mb1-sm css-bz0cep ex41m6f0 secondary" type="button"&gt;Cancel&lt;/button&gt;&lt;button class="ml3-sm mb1-sm css-17hmqcn ex41m6f0 primary" type="button"&gt;Save&lt;/button&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I'm attempting to click on the save button and I'm trying this:</p>
  
  <pre><code>  const addBtn = await select(page).getElement('button:contains(Save)');
    await addBtn.click()
  </code></pre>
  
  <p>I have also tried:</p>
  
  <pre><code>  const [button] = await page.$x("//div[@class='elements']/button[contains(., 'Save')]");
    if (button) {
        await button.click();
    }
  </code></pre>
  
  <p>I get an unhandled promise rejection.  Any idea why?</p>