Cannot find iOS UIWebView with appium 1.6.0beta3

  • iOS 10.0.2
  • Appium 1.6.0 beta3
  • Real Device
  • Writing tests in JavaScript
  • Tests running on Linux, Appium server on OS X.

The iOS app I’m testing uses a UIWebView to display content, but I’m unable to switch to the context. When I send a command to retrieve the contexts, appium returns [“NATIVE_APP”].

Appium log:

[MJSONWP] Calling AppiumDriver.getContexts() with args: ["62586c96-2bd8-4b96-8544-1…
[debug] [XCUITest] Executing command ‘getContexts’
[debug] [iOS] Getting list of available contexts
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: false
[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 27753
[debug] [RemoteDebugger] Sending request to: http://localhost:27753/json
[debug] [RemoteDebugger] Page element JSON:
[debug] [iOS] No web frames found.
[MJSONWP] Responding to client with driver.getContexts() result: [“NATIVE_APP”]

Indeed, going to localhost:27753/json shows an empty array. Where else should I be looking?

Since I’m not building my app locally (installing dev builds via, it looks like I might need to try this: ios-webkity-debug-proxy issue 110