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 navigation controller + view controller with web view and button) and I want to check following scenario:
- Web View loads page
www.example.com
- User taps on button
- Web View loads some page with URL:
www.example2.com
I want to check which page is loaded in UIWebView after pressing button. Is this possible with UI Testing right now?
Actually I'm getting web view like this:
let app:XCUIApplication = XCUIApplication()
let webViewQury:XCUIElementQuery = app.descendantsMatchingType(.WebView)
let webView = webViewQury.elementAtIndex(0)