title: How to access current value in a text input field with puppeteer
body: <p>I'm trying to automate retrieving form values from <em>an already filled out form</em> with puppeteer and xpath.</p>
  
  <p>I've already automated FILLING a text input field as follows, but doing the reverse with .evaluate() doesn't work:</p>
  
  <pre><code>[fieldHandle] = await page.$x("//label[text() = 'My Label']/../following-sibling::td[1]//input")
  await page.evaluate((x, y) =&gt; x.value = y, fieldHandle, 'newValue')
  </code></pre>
  
  <p>This is my most recent attempt - still no success...</p>
  
  <pre><code>let [fieldHandle] = await page.$x("//label[text() = 'My Label']/../following-sibling::td[1]//input")
  let fieldRaw = await fieldHandle.getProperty('textContent')
  let fieldValue = await fieldRaw.jsonValue()
  </code></pre>
  
  <p>Hopefully someone out there knows how to achieve this!</p>