title: How to select date in jQuery Datepicker?
body: <p>I use Watir WebDriver.</p>
  
  <p>I would be grateful if someone could show me how to enter a date into the jQuery Datepicker here:</p>
  
  <p><a href="http://jqueryui.com/datepicker/" rel="nofollow">http://jqueryui.com/datepicker/</a></p>
  
  <p>The following code returns the error:</p>
  
  <p>unable to locate element, using {:id=>"datepicker", :tag_name=>"input or textarea", :type=>"(any text type)"}</p>
  
  <pre><code>require 'watir-webdriver'
  browser = Watir::Browser.new :firefox
  browser.goto "http://jqueryui.com/datepicker/"
  browser.text_field(:id, "datepicker").set("")
  browser.link(:text, "Prev").click
  browser.link(:text, "2").click
  </code></pre>