title: Populating table cells with unique data - qa automation
body: <p>I have a table that looks like this -</p>
  <pre><code>&lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;&lt;/td&gt;
    ...
    &lt;td&gt;&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  <p>The data in each cell is populated with a unique value from a json object, or a unique action takes place on it (ie check mark).
  The difficulty comes when a user can add additional rows with the same column count.
  How do I write an algorithm/function that will go through each cell and populate it with my unique json values or perform a specific action?</p>
  <p>This is for Cypress QA Automation (Js/Ts). Each cell has a unique locator, but if I go that way, my page object model will have duplicate code.</p>