title: Getting value of input element in Playwright
body: <p>How do I return the value of elem so that I can verify that it is in fact <code>1</code>?</p>
  
  <pre class="lang-js prettyprint-override"><code>const elem = await page.$('input#my-input')
  await elem.fill('1')
  </code></pre>