title: Java: How to Iterate through table cells to capture number in randomly changing table
body: <p>Below is my table structure and I'm using Selenium using Java to iterate through all rows and capture number "<code>00955222222222</code>" which will display randomly in any cell. once I get this, I have read entire row and get auth code. I can implement till looping rows and cols. But need input how I can get the auth code? Please help</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;table border="2" cellspacing="0" width="100%" cellpadding="0"&gt;
    &lt;tr bgcolor="#CCCCCC"&gt;
      &lt;td align="left"&gt;
        &lt;font face="times new roman" size=3&gt;&lt;b&gt;&amp;nbsp;Mobile Number&lt;/b&gt;&lt;/font&gt;
      &lt;/td&gt;
      &lt;td align="left"&gt;
        &lt;font face="times new roman" size=3&gt;&lt;b&gt;&amp;nbsp;Date&lt;/b&gt;&lt;/font&gt;
      &lt;/td&gt;
      &lt;td align="left"&gt;
        &lt;font face="times new roman" size=3&gt;&lt;b&gt;&amp;nbsp;Message&lt;/b&gt;&lt;/font&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr bgcolor="#EBD8B8"&gt;
      &lt;td align="left" nowrap&gt;
        &lt;font face="times new roman" size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;955111111111&lt;/font&gt;
      &lt;/td&gt;
      &lt;td align="left" nowrap&gt;
        &lt;font face="times new roman" size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;2017-03-14 16:57:20.027&lt;/font&gt;
      &lt;/td&gt;
      &lt;td align="left"&gt;
        &lt;font face="times new roman" size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Your authentication code is: 11292 to transfer INR 5,500.00 through online/mobile banking. If you have not requested any transfer, please contact the bank IMMEDIATELY on 00971 600 54 0000 .&lt;/font&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr bgcolor="#FFFFFF"&gt;
      &lt;td align="left" nowrap&gt;
        &lt;font face="times new roman" size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;00955222222222&lt;/font&gt;
      &lt;/td&gt;
      &lt;td align="left" nowrap&gt;
        &lt;font face="times new roman" size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;2017-03-14 16:55:30.187&lt;/font&gt;
      &lt;/td&gt;
      &lt;td align="left"&gt;
        &lt;font face="times new roman" size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Your authentication code is: 59859 to pay AED 1.00 to Empower through online/mobile banking. Please do not share this code with any person. If you have not requested any payment, please contact the bank IMMEDIATELY on 00971 600
          54 0000 .&lt;/font&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr bgcolor="#EBD8B8"&gt;
      &lt;td align="left" nowrap&gt;
        &lt;font face="times new roman" size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;00955111111111&lt;/font&gt;
      &lt;/td&gt;
      &lt;td align="left" nowrap&gt;
        &lt;font face="times new roman" size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;2017-03-14 16:54:46.25&lt;/font&gt;
      &lt;/td&gt;
      &lt;td align="left"&gt;
        &lt;font face="times new roman" size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Your authentication code is: 79404 to transfer PKR 7000 through online/mobile banking. If you have not requested any transfer, please contact the bank IMMEDIATELY on 00971 600 54 0000 .&lt;/font&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>