title: Click button with predicate + XCUITest
body: <p>I am trying to click a button , which is having only Title and it will be changing according to number of products added to the cart.</p>
  
  <p>Here is the properties</p>
  
  <p><a href="https://i.stack.imgur.com/7c4FM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7c4FM.png" alt="enter image description here"></a></p>
  
  <p>I used the following code to do this</p>
  
  <pre><code>let predicate = NSPredicate(format: "title BEGINSWITH[cd] 'Cart'")
      let button = XCUIApplication().buttons.element(matching: predicate)
      tap(on: button)
  </code></pre>
  
  <p>But it says element not found.</p>
  
  <p>Any suggestions would be helpful.</p>
  
  <p>And it would be great if you suggest any books for XCUITest. </p>