Xcodes UI Testing - Tapping an x y location
<p>I am trying to tap an x, y location, while using Xcode and UI Testing.  Here is my code:</p>

<pre><code> XCUIApplication().coordinateWithNormalizedOffset(CGVector(dx: 50, dy: 50)).tap()
</code></pre>

<p>The middle of the button is definitely at that location and cannot be identified as an individual object (hence using the x, y coordinates).</p>

<p>However, this is not pressing the button.  Anyone know if there is a correct way of tapping an x y coordinate?</p>