title: Selenium RC Having problems with XPath for a table
body: <p>I'm trying to select an element given by: </p>
  
  <pre><code>/html/body[@id='someid']/form[@id='formid']/div[@id='someid2']/div[@id='']/div[@id='']/div[@id='']/table/tbody[@id='tableid']/tr[7]/td[2]
  </code></pre>
  
  <p>Now the html of that row I'm trying to select looks like this:</p>
  
  <pre><code>&lt;tr&gt;
  &lt;td class="someClass"&gt;some text&lt;/td&gt;
  &lt;td class="someClass2"&gt;my required text for verifying&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I need to check whether <strong>my required text for verifying</strong> exists in the page.</p>
  
  <ol>
  <li><p>I used <code>selenium.isTextPresent("my required text for verifying");</code> and it doesnt work</p></li>
  <li><p>So now I tried with <code>selenium.isElementPresent("//td[contains(text(),'my required text for verifying')]")</code>
  <br>This works sometimes but occassionally gives random failures.</p></li>
  <li><p>Tried with <code>selenium.isElementPresent(//*[contains(text(),'my required text for verifying')])</code> too..</p></li>
  </ol>
  
  <p>How do I verify this text on the page using selenium?</p>
  
  <p>The problem is not with the page taking time to load. I took screenshots before the failure occurs and found that the page was fully loaded so that shouldnt be the problem.</p>
  
  <p>Could someone please suggest any way to select this element or any way to validate this text on the screen?</p>