title: Playwright testing. Can I use a variable in ':has-text()'
body: <p>Using Playwright, I'd like to find an element using the value of a variable</p>
  <p>For example:</p>
  <pre class="lang-js prettyprint-override"><code>let name = 'Sully'
  await page.click(`li:has-text(${sully})`)
  </code></pre>
  <p>but I get the following error:</p>
  <p><code>page.click: Error: &quot;has-text&quot; engine expects a single string</code></p>