Appium 2.0 ios 自动化时,切换webview只看到NATIVE_APP,safari ios_debug_proxy都设置正确了,单独调试可以

问题

Appium 2.0 ios 自动化时,切换webview只看到NATIVE_APP,safari ios_debug_proxy都设置正确了,单独调试可以

报错信息

环境

appium2.0

Capabilitie参数发出来看看

下面贴了capabilities

[AppiumDriver@b9da] Appium v2.4.1 creating new XCUITestDriver (v7.1.2) session
[AppiumDriver@b9da] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@b9da] Appium’s BaseDriver version is 9.5.2
[AppiumDriver@b9da] XCUITestDriver’s BaseDriver version is 9.5.2
[XCUITestDriver@3221] Creating session with W3C capabilities: {
[XCUITestDriver@3221] “alwaysMatch”: {
[XCUITestDriver@3221] “platformName”: “IOS”,
[XCUITestDriver@3221] “appium:deviceName”: “iPhone”,
[XCUITestDriver@3221] “appium:startIWDP”: true,
[XCUITestDriver@3221] “appium:automationName”: “XCUITest”,
[XCUITestDriver@3221] “appium:autoGrantPermissions”: true,
[XCUITestDriver@3221] “appium:noReset”: false,
[XCUITestDriver@3221] “appium:platformVersion”: “14.6”,
[XCUITestDriver@3221] “appium:waitForQuiescence”: false,
[XCUITestDriver@3221] “appium:instrumentApp”: true,
[XCUITestDriver@3221] “appium:bundleId”: “com.taikang.tailifetest-ad”,
[XCUITestDriver@3221] “appium:udid”: “00008020-001E18A13AC1402E”,
[XCUITestDriver@3221] “appium:showXcodeLog”: true,
[XCUITestDriver@3221] “appium:cssSelectorsEnabled”: true,
[XCUITestDriver@3221] “appium:userNewWDA”: false,
[XCUITestDriver@3221] “appium:useMobileDeviceTime”: true,
[XCUITestDriver@3221] “appium:usePrebuiltWDA”: true,
[XCUITestDriver@3221] “appium:newCommandTimeOut”: 600000,
[XCUITestDriver@3221] “appium:showChromedriverLog”: true,
[XCUITestDriver@3221] “appium:chromedriverExecutable”: “/Users/ceshiguanlichu/Downloads/tailifeui-ios/datas/content/chromedriver.exe”,
[XCUITestDriver@3221] “appium:nativeWebTap”: true,
[XCUITestDriver@3221] “appium:nativeEvents”: true
[XCUITestDriver@3221] },
[XCUITestDriver@3221] “firstMatch”: [
[XCUITestDriver@3221] {}
[XCUITestDriver@3221] ]
[XCUITestDriver@3221] }
[XCUITestDriver@3221] The following provided capabilities were not recognized by this driver:
[XCUITestDriver@3221] startIWDP
[XCUITestDriver@3221] autoGrantPermissions
[XCUITestDriver@3221] instrumentApp
[XCUITestDriver@3221] cssSelectorsEnabled
[XCUITestDriver@3221] userNewWDA
[XCUITestDriver@3221] useMobileDeviceTime
[XCUITestDriver@3221] newCommandTimeOut
[XCUITestDriver@3221] showChromedriverLog
[XCUITestDriver@3221] chromedriverExecutable
[XCUITestDriver@3221] nativeEvents

appium log显示如下

[XCUITestDriver@3221 (418d99f8)] Calling AppiumDriver.getContexts() with args: [“418d99f8-a671-440d-8271-ffd132ab21ea”]
[XCUITestDriver@3221 (418d99f8)] Executing command ‘getContexts’
[XCUITestDriver@3221 (418d99f8)] Getting list of available contexts
[XCUITestDriver@3221 (418d99f8)] Retrieving contexts and views
[XCUITestDriver@3221 (418d99f8)] Selecting by url: false
[RemoteDebugger] Remote Debugger version 11.0.3
[RemoteDebugger] useNewSafari → false
[RemoteDebugger] Checking which communication style to use (non-Safari on platform version ‘14.6’)
[RemoteDebugger] Platform version equal or higher than ‘12.2’: true
[RemoteDebugger] Setting communication protocol: using Target-based communication
[RemoteDebugger] Sending connection key request
[RemoteDebugger] Sending ‘_rpc_reportIdentifier:’ message (id: 0): ‘setConnectionKey’
[RemoteDebugger] Sending connection key request
[RemoteDebugger] Sending ‘_rpc_reportIdentifier:’ message (id: 2): ‘setConnectionKey’
[RemoteDebugger] Sending to Web Inspector took 13ms
[RemoteDebugger] Sending to Web Inspector took 12ms
[RemoteDebugger] Selecting application
[RemoteDebugger] No applications currently connected.
[XCUITestDriver@3221 (418d99f8)] No web frames found.
[XCUITestDriver@3221 (418d99f8)] Responding to client with driver.getContexts() result: [“NATIVE_APP”]
[HTTP] ← GET /session/418d99f8-a671-440d-8271-ffd132ab21ea/contexts 200 154 ms - 24
[HTTP]
[HTTP] → POST /session/418d99f8-a671-440d-8271-ffd132ab21ea/element
[HTTP] {“value”:“//div[@id=‘swiper-container’]”,“using”:“xpath”}