title: Loop through table rows with puppeteer
body: <p>I want to get link from each row in a table. That's how I get 3rd (for example):</p>
  
  <pre><code>await page.evaluate(() =&gt; document.querySelector(#content-tabs-0 &gt; div &gt; table &gt; tbody &gt; tr:nth-child(3) &gt; td.mpt-1-td-desc &gt; a").href)
  </code></pre>
  
  <p>I want to iterate through table rows, I use such code:</p>
  
  <pre><code>for(let i=1;i&lt;=10;i++){
  let link = await page.evaluate(() =&gt; document.querySelector("#content-tabs-0 
  &gt; div &gt; table &gt; tbody &gt; tr:nth-child("+i+") &gt; td.mpt-1-td-desc &gt; a").href);
  console.log(link);
  }
  </code></pre>
  
  <p>When i execute code, i get such error:</p>
  
  <pre><code>(node:16928) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Evaluation failed: ReferenceError: i is not defined
  at &lt;anonymous&gt;:1:87
  (node:16928) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js
  process with a non-zero exit code.
  </code></pre>
  
  <p>How should it be done correctly?</p>