Unable to find WEBVIEW in an hybrid app possibly due to ios-webkit-debug-proxy #7676

sp5594 opened this Issue Jan 10, 2017 · 2 comments


None yet

3 participants

sp5594 commented Jan 10, 2017 edited

Hey guys,
Im trying to find WEBVIEW in an hybrid app but all Im getting back is NATIVE_APP. Here`s my setup:

  • xcode 10.2
  • ios 10.1
  • appium 1.6.3

public void setup() {

    try {

        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, "1.6.3");
        capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
        capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 6");
        capabilities.setCapability(MobileCapabilityType.UDID, "456af3fa1a0b67bc8f587ef5de70474dd8fc132");
        capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
        capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "10.1");
        capabilities.setCapability("bundleId", "com.example");
   //     capabilities.setCapability(MobileCapabilityType.APP_ACTIVITY, "com.example.MainActivity");
      capabilities.setCapability("autoWebview", "true");

        driver = new IOSDriver<WebElement>(new URL(""), capabilities);

    } catch (MalformedURLException e) {


[debug] [MJSONWP] Calling AppiumDriver.getContexts() with args: ["3e48975f-b789-45ca-b529-06475ed400b5"] [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 [iOS] Attempted to get a list of webview contexts but could not connect to ios-webkit-debug-proxy. If you expect to find webviews, please ensure that the proxy is running and accessible [debug] [iOS] No web frames found. [debug] [MJSONWP] Responding to client with driver.getContexts() result: ["NATIVE_APP"]

@triager triager added the NeedsTriage label Jan 10, 2017
sp5594 commented Jan 10, 2017

web inspector is turned on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment