title: iterate through rows and cells using for loop in c# Selenium
body: <p>I have already checked many answers but all are using a <code>foreach</code> loop to iterate through rows. I want to use a <code>for</code> loop.</p>
  
  <p><strong>Code:</strong> </p>
  
  <pre><code>IWebElement NtTable = driver.FindElement(By.Id("nt-item-table"));
  IReadOnlyCollection&lt;IWebElement&gt; TableRows = NtTable.FindElements(By.TagName("tr")).ToList();
  
  for (int i = 0; i &lt;= TableRows.Count; i++)
  {
      //driver.FindElement(TableRows[i])....
      //Tablows.get(i)....
  
  }
  </code></pre>
  
  <p>I tried above commented 2 lines to get text of particular TD from particular TR but seems not getting any property after press <code>(.)</code>. Above seems fine if I use Java but not in C#.</p>