Handling tables in c# selenium
<pre><code>&lt;table cellpadding="0" cellspacing="0" onclick="" style="width: 1345px;"&gt;

  &lt;tbody&gt;

    &lt;tr id="item_tcm:222-382904-131104" title="2. Publish to WIP (tcm:222-382904-131104)" class="item even" c:drawn="true"&gt;
      &lt;td class="col0 icon odd" value="T131104L0P0"&gt;
        &lt;div class="icon" style="background-image: url(&amp;quot;/WebUI/Editors/CME/Themes/Carbon2/icon_v7.1.0.66.55_.png?name=T131104L0P0&amp;amp;size=16&amp;quot;);"&gt;&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col1 even"&gt;
        &lt;div class="text"&gt;2.&amp;nbsp;Publish&amp;nbsp;to&amp;nbsp;WIP&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col2 odd"&gt;
        &lt;div class="text"&gt;JH&amp;nbsp;Anchor&amp;nbsp;link&amp;nbsp;2&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col3 even"&gt;
        &lt;div class="text"&gt;S070&amp;nbsp;Public&amp;nbsp;Site&amp;nbsp;US&amp;nbsp;English&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col4 odd" value="2015-12-23T14:41:04"&gt;
        &lt;div class="text"&gt;12/23/2015 2:41 PM&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col5 even"&gt;
        &lt;div class="text"&gt;NT&amp;nbsp;AUTHORITY\SYSTEM&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col6 odd" value=""&gt;
        &lt;div class="text"&gt;
          &lt;span style="color: #f00"&gt;&lt;/span&gt;
        &lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col7 even" value="16"&gt;
        &lt;div class="text"&gt;Suspended&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col8 odd"&gt;
        &lt;div class="text"&gt;NT&amp;nbsp;AUTHORITY\SYSTEM&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col9 even"&gt;
        &lt;div class="text"&gt;Publishing&amp;nbsp;Failed&lt;/div&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr id="item_tcm:222-382901-131104" title="2. Publish to WIP (tcm:222-382901-131104)" class="item even" c:drawn="true"&gt;
      &lt;td class="col0 icon odd" value="T131104L0P0"&gt;
        &lt;div class="icon" style="background-image: url(&amp;quot;/WebUI/Editors/CME/Themes/Carbon2/icon_v7.1.0.66.55_.png?name=T131104L0P0&amp;amp;size=16&amp;quot;);"&gt;&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col1 even"&gt;
        &lt;div class="text"&gt;2.&amp;nbsp;Publish&amp;nbsp;to&amp;nbsp;WIP&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col2 odd"&gt;
        &lt;div class="text"&gt;JH_anchor&amp;nbsp;link&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col3 even"&gt;
        &lt;div class="text"&gt;S070&amp;nbsp;Public&amp;nbsp;Site&amp;nbsp;US&amp;nbsp;English&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col4 odd" value="2015-12-23T14:17:51"&gt;
        &lt;div class="text"&gt;12/23/2015 2:17 PM&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col5 even"&gt;
        &lt;div class="text"&gt;NT&amp;nbsp;AUTHORITY\SYSTEM&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col6 odd" value=""&gt;
        &lt;div class="text"&gt;
          &lt;span style="color: #f00"&gt;&lt;/span&gt;
        &lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col7 even" value="16"&gt;
        &lt;div class="text"&gt;Suspended&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col8 odd"&gt;
        &lt;div class="text"&gt;NT&amp;nbsp;AUTHORITY\SYSTEM&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="col9 even"&gt;
        &lt;div class="text"&gt;Publishing&amp;nbsp;Failed&lt;/div&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    .....
  &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>

<p>I have collection of rows. Inside each row i have 10 columns(td). I want to iterate to each row. For each row I want to get the 8th and 10 th column.
Note :- The test case will get <strong>Fail</strong> if the 8th column value is "Suspended" and 10th column value is "Publishing Failed" or else the test case would get <strong>Pass</strong></p>

<p>I tried the below logic</p>

<pre><code>IWebElement tableElement = driver.FindElement(By.XPath("/html/body/table"));
IList&lt;IWebElement&gt; tableRow = tableElement.FindElements(By.TagName("tr"));
foreach (var item in tableRow)
{

}
</code></pre>

<p>I'm not sure how to proceed further. Could anyone help me? Thanks in advance</p>