title: XCUITest - neither element nor descendant has keyboard focus
body: <p>I am testing adding a comment to my app, on my other UI tests I have used the <code>typeText</code> function and everything works perfectly fine. I have also clicked to make Connect hardware keyboard' is off. The app terminates testing and shows the error UI Testing Failure - Neither element nor any descendant has keyboard focus during the addComment method. Any ideas?</p>
  
  <pre><code>  func testAddComment() {
      let featuredPage = self.app.tabBars["Featured"]
      if featuredPage.exists {
          featuredPage.tap()
      }
      sleep(2)
      let featuredOffer = self.app.tables.cells.elementBoundByIndex(1)
      if featuredOffer.exists {
          featuredOffer.tap()
      }
      sleep(2)
      let addComment = self.app.staticTexts["Add a comment"]
      if addComment.exists {
          addComment.tap()
          addComment.typeText("Test comment")
      }
      sleep(2)
      let postComment = self.app.buttons["Send"]
      if postComment.exists {
          postComment.tap()
      }
      sleep(2)
  }
  </code></pre>