title: UIAutomation [UITextField resignFirstResponder]
body: <p>How can I get the keyboard dismissed when using UI Automation tests?
  I've been looking at <a href="http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Reference/UIAElementClassReference/UIAElement/UIAElement.html#//apple_ref/doc/uid/TP40009903" rel="nofollow">UIAElement</a> and <a href="http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Reference/UIATextFieldClassReference/UIATextField/UIATextField.html#//apple_ref/doc/uid/TP40009925" rel="nofollow">UIATextField</a> documentation but couldn't find something that suggests so.</p>
  
  <pre><code>var textField = toolbar.textFields()[0];
  var textView = toolbar.textViews()[0];
  function testFeature1() {
      if (textField.hasKeyboardFocus() || textView.hasKeyboardFocus()) {
          // Resign first responder .. How?
      }
      // Do my tests
  }
  </code></pre>