title: How to check text in an input field
body: <p>I am newbie to Selenium, and been having trouble verifying the text saved in a field.</p>
  
  <p>This is the html for one of the rows.</p>
  
  <pre><code>&lt;tr id="tier_no_1"&gt;
      &lt;td class="ui-styled-table-odd-row"&gt;&lt;/td&gt;
      &lt;td class="ui-styled-table-odd-row"&gt;&lt;/td&gt;
      &lt;input id="tier_name" class="tierName required" type="text" name="tier_name"&gt;&lt;/input&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I need to verify the text that is saved/entered into the field.
  Normally I would use the following, but this just returns a value of 'null'</p>
  
  <pre><code>Assert.assertEquals("Tier 1", findElement(By.cssSelector("#tier_no_1 &gt; td.ui-styled-table-odd-row &gt; #tier_name")).getAttribute("tier_name"));
  </code></pre>