title: Using selenium's waitForCondition with an xpath
body: <p>Selenium has some nice support for finding elements in a page via xpath</p>
  
  <p><code>selenium.isElementPresent("//textarea")</code></p>
  
  <p>and in ajax pages you can use waitForCondition to wait on a page until something appears</p>
  
  <p><code>selenium.waitForCondition("some_javascript_boolean_test_as_a_string", "5000")</code></p>
  
  <p>My difficulty is, I can't seem to get into a position to use the xpath support for the boolean test. document.getElementById seems to work fine, but selenium.isElementPresent doesn't.</p>
  
  <p>Is there any easy way of accessing selenium's xpath element finding abilities from within waitForCondition's first parameter?</p>