I\'m using new Xcode UI Testing from XCTest Framework with the Xcode 7 GM. I\'ve got an app with simple UIWebView (it\'s just a naviga
If the title of the pages are different, you can check for the title of the web page.
let app = XCUIApplication()
app.launch()
//Load www.example.com
//Tap on some button
app.links["Your button"].tap()
//Wait for www.example2.com to load
let webPageTitle = app.otherElements["Example2"]
let exists = NSPredicate(format: "exists == 1")
expectationForPredicate(exists, evaluatedWithObject: webPageTitle, handler: nil)
waitForExpectationsWithTimeout(5, handler: nil)