mservidio
mservidio

Reputation: 13057

XCUIElement getting underlying element object such as WebView

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

Answers (1)

Joe Masilotti
Joe Masilotti

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

Related Questions