title: How to click element in Puppeteer using xPath
body: <p>I want to click on an element without using css selectors.</p>
  
  <pre><code>await page.click()
  </code></pre>
  
  <p>uses selectors to identify the element.</p>
  
  <hr>
  
  <p>So how can I do something like this?</p>
  
  <pre><code>await page.click('/*[@id="toc"]/ul/li[1]/a')
  </code></pre>