title: XCUITest get URL value
body: <p>I am using XCUITest with XCode version 8.3.3.  The application has a login button which launches a browser window.  Was wondering if someone could tell me how I can access the value of the URL that gets opened.  I want to verify we launch the correct URL when selecting the Login button.</p>
  
  <pre><code>let app = XCUIApplication()
  let loginButton = app.buttons["Login"]
  loginButton.tap()
  </code></pre>
  
  <p>At this point the browser window is open:<a href="https://i.stack.imgur.com/kH25I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kH25I.png" alt="enter image description here"></a></p>
  
  <p><strong>How can I get the value of xyz.com?</strong></p>
  
  <p>Using the Accessibility Inspector, I can see:
  <a href="https://i.stack.imgur.com/Lk5xr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lk5xr.png" alt="enter image description here"></a></p>