Reputation: 13057
Is there any way to capture the actual UI Cocoa object? IE:
let window = app.windows["mainScreen"]
let view = window.webViews["myWebView"]
let webView = view as! WebView
Upvotes: 0
Views: 511
Reputation: 17008
Unfortunately, no. Xcode UI Testing runs in a separate process from the production application. There is no way to access any UI/Cocoa objects when running through these tests.
Upvotes: 1