title: Get last item from a table using Selenium Driver C#
body: <p>I am new working with selenium driver and C# and I am facing few problems. </p>
  
  <p>I have a table created by an asp.net webforms application. I can't change this software and I need to take the last link from this table.</p>
  
  <p>This is the table code generated by the asp.net webforms application.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="table table-responsive"&gt;
                              &lt;table class="table table-bordered table-hover table-condensed" id="_ctl0_ContentPlaceHolder_grdResults" style="border-collapse:collapse;" border="1" rules="all" cellspacing="0"&gt;
   
   &lt;tbody&gt;
    &lt;tr align="right" class="text-bold bg-gray"&gt;
     &lt;td colspan="3"&gt;&lt;span&gt;1&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class="text-bold bg-gray"&gt;
     &lt;td style="width:32px;"&gt; 
     &lt;/td&gt;
     &lt;td&gt;
      Description
     &lt;/td&gt;
     &lt;td&gt;
      Expired?
     &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
     &lt;td&gt;
                           &lt;input name="chkView213311910" class="check" id="chkView213311910" style="border-style: none;" type="checkbox" value="213311910" /&gt; 
                          &lt;/td&gt;
     &lt;td&gt;
                           &lt;table&gt;
       &lt;tbody&gt;
        &lt;tr&gt;
         &lt;td&gt;
         &lt;/td&gt;
         &lt;td title="Expired" style="width: 20px; border-right: 1px solid #B3B3B3;   margin-right: 15px;    display:  inline-block;    padding-right: 25px;"&gt;
         &lt;/td&gt;
         &lt;td style="width: 25px; border-right: 1px solid #B3B3B3;   margin-right: 15px;    display:  inline-block;    padding-right: 25px;"&gt;
          &lt;a href="ShowObjectFile.aspx?ObjectID=213311910" target="_blank"&gt;
           &lt;i class="fa fa-lg fa-file-pdf-o" hspace="4" alt="File type PDF"&gt;
           &lt;/i&gt;
          &lt;/a&gt;
         &lt;/td&gt;
         &lt;td&gt;
          &lt;font color="dimgray"&gt;
           &lt;a href="ViewObject.aspx?ObjectID=213311910"&gt;
            First Link
           &lt;/a&gt;
          &lt;/font&gt;
         &lt;/td&gt;
        &lt;/tr&gt;
       &lt;/tbody&gt;
      &lt;/table&gt;
                          &lt;/td&gt;
     &lt;td&gt;
                           &lt;span id="_ctl0_ContentPlaceHolder_grdResults__ctl3_lblCheckedOut"&gt;Não&lt;/span&gt;
                          &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
     &lt;td&gt;
                           &lt;input name="chkView213312924" class="check" id="chkView213312924" style="border-style: none;" type="checkbox" value="213312924" /&gt; 
                          &lt;/td&gt;&lt;td&gt;
                           &lt;table&gt;
       &lt;tbody&gt;
        &lt;tr&gt;
         &lt;td&gt;
         &lt;/td&gt;
         &lt;td style="width: 20px; border-right: 1px solid #B3B3B3;   margin-right: 15px;    display:  inline-block;    padding-right: 25px;"&gt;
         &lt;/td&gt;
         &lt;td style="width: 25px; border-right: 1px solid #B3B3B3;   margin-right: 15px;    display:  inline-block;    padding-right: 25px;"&gt;
          &lt;a href="ShowObjectFile.aspx?ObjectID=213312924" target="_blank"&gt;
           &lt;i class="fa fa-lg fa-file-pdf-o" hspace="4" alt="file Type pdf"&gt;
           &lt;/i&gt;
          &lt;/a&gt;
         &lt;/td&gt;
         &lt;td&gt;
          &lt;font color="dimgray"&gt;
           &lt;a href="ViewObject.aspx?ObjectID=213312924"&gt;
            Second Link
           &lt;/a&gt;
          &lt;/font&gt;
         &lt;/td&gt;
        &lt;/tr&gt;
       &lt;/tbody&gt;
      &lt;/table&gt;
      &lt;/td&gt;&lt;td&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Besides click on the last link (Second link), I 
  Also I need to save the <strong>ViewObject.aspx?ObjectID=213312924</strong> (this is where I will go when I click on the link) on a variable. </p>
  
  <p>Can someone please, help me with this issue?</p>