title: Puppeteer - xpath - How to input text in div element using xpath?
body: <p>I have been struggling with this for a while but not avail.</p>
  
  <p>I need to input some text in div element with xpath.</p>
  
  <p>I am familiar with inputting text using id and names of elements. However, for inputting text into dynamic tables, unable to find a method using xpath. any help will be appreciated.</p>
  
  <p>In the below code example, I am trying to input the text '0000'</p>
  
  <pre><code>const [ncm] = await cmtab.$x('//*[@id="sheet1"]/tbody/tr[2]/td/div/div['+ d + ']/table/tbody/tr['+ r3 + ']/td[9]');
  await cmtab.evaluate(ncm, (element, value) =&gt; element.value = value, "0000");
  
  </code></pre>
  
  <p>Should be able to input the text in the table using xpath. Please help as this would mean a lot for my project.</p>