title: Using selenium webdriver to find the label text
body: <p>I was having a hard time using Selenium web driver to find the label text for the below scenario. </p>
  
  <pre><code>&lt;tr id="row"&gt; 
  &lt;td width="148" height="22" align="left"&gt; 
  &lt;b&gt; Label Text&lt;/b&gt; 
  &lt;/td&gt; &lt;/tr&gt;
  </code></pre>
  
  <p>How do I get the Label Text using webdriver ? </p>
  
  <p>Thanks in advance. </p>
  
  <hr>
  
  <p>Thanks for the reply. I think I should have been more specific. I have a list of td tags inside the tr tag.
  For eg:</p>
  
  <pre><code>&lt;tr id="row"&gt; 
  &lt;td width="148" height="22" align="left"&gt; 
  &lt;b&gt; Label Text 1&lt;/b&gt; 
  &lt;td width="148" height="22" align="left"&gt; 
  &lt;b&gt; Label Text 2&lt;/b&gt; 
  
  &lt;td width="148" height="22" align="left"&gt; 
  &lt;b&gt; Label Text 3&lt;/b&gt; 
  &lt;/td&gt; &lt;/tr&gt;
  </code></pre>
  
  <p>driver.findElement(By.id("row")).getText() would retrieve me all of those label values. Can I get the label value based on the location in the page ? Thanks.</p>