• 想尝试翻译,报名

  • #12 楼 @junhe 按照楼主的方法进行了尝试,发现 id 值仍然为 null。想问问楼主和大家,这样操作后并不一定所有控件都会产生 id 值(不管唯不唯一),是吗?

  • #54 楼 @CamillaDan 报相同的错。请问你的问题解决了吗?

    nicoledeMac-mini:~ nicole$ app-inspector -u A055DCB7-131C-44AE-9F26-5B062135253C
    >> xctest-client start with port: 8900
    >> WebDriverAgent version: 1.0.39
    >> app-inspector:66:44 [master] pid:6280 undefined
    (node:6280) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: >> app-inspector:66:44 [master] pid:6280 undefined
    (node:6280) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    
  • 武汉的同学表示获益匪浅😄

  • 移动 app 测试实战 at 2016年12月18日

    我也拿到了这本书😀

  • #27 楼 @026哦,收到了带电子票的邮件,报名成功了。谢谢~

  • 这个怎么知道报名成功没有呢?什么时候会有报名反馈呢?

  • #18 楼 @026 非常期待😀

  • #2 楼 @026 武汉会不会有 appium girls 活动呀?

  • 升级 xcode 到 8.1,升级 appium 到 1.6.0,appium-doctor 检测环境没问题。但是运行测试脚本时总是出现错误,我的测试脚本(该脚本在 appium1.5.3 上运行没问题)是:

    def openApplication(self,time):
           desired_caps = {}
           desired_caps['automationName'] = 'XCUITest'
           desired_caps['appium-version'] = '1.6.0'
           desired_caps['platformName'] = 'iOS'
           desired_caps['platformVersion'] = '10.1'
           desired_caps['deviceName'] = 'iPhone SE'
           desired_caps['app'] = os.path.abspath('/Users/wanwan/Desktop/campus.app')
           self.driver=webdriver.Remote('http://0.0.0.0:4723/wd/hub',desired_caps)
           sleep(3)
    

    self.driver=webdriver.Remote('http://0.0.0.0:4723/wd/hub',desired_caps)
    

    这行代码总是出现如下报错:

    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 417, in _read_status
        raise BadStatusLine(line)
    BadStatusLine: ''
    

    我在社区和网站上搜索了相关解决方案,问题依然无法解决。有没有遇到相同问题的伙伴,求指导。谢谢!https://testerhome.com/topics/6277https://testerhome.com/topics/729

  • appium 控制安卓手机网络 at 2016年11月08日

    #3 楼 @jphtmt 我测试 IOS_APP,运行脚本时也遇到了同样的报错。参考了几篇帖子,还没解决问题。

  • 之前安装了 appium1.6.0-beta1,现在有了 appium1.6.0 之后想换成 1.6.0 再试试,但是安装 appium 总是报这样的错误:

    wanqingyaodeMac:npm wanqingyao$ npm install -g appium
    npm ERR! tar.unpack unzip error /var/folders/tf/89068tvn199bhwpk5r3hg03h0000gn/T/npm-3970-7391db21/registry.npmjs.org/appium-adb/-/appium-adb-2.6.17.tgz
    npm ERR! Darwin 15.6.0
    npm ERR! argv "/usr/local/Cellar/node/6.9.1/bin/node" "/usr/local/bin/npm" "install" "-g" "appium"
    npm ERR! node v6.9.1
    npm ERR! npm  v3.10.9
    npm ERR! code Z_BUF_ERROR
    npm ERR! errno -5
    
    npm ERR! unexpected end of file
    npm ERR! 
    npm ERR! If you need help, you may report this error at:
    npm ERR!     <https://github.com/npm/npm/issues>
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /Users/wanqingyao/npm/npm-debug.log
    

    已经在 github 上提问,但是还没有收到任何回应。在网上看了一篇帖子:http://www.jianshu.com/p/f0feba219a21,按照上面的提示也没有解决问题。请教各位大神,有没有人遇到过类似的问题呢?

  • Appium 1.6.0 正式发布!! at 2016年10月18日

    #10 楼 @ccy OK,谢谢

  • Appium 1.6.0 正式发布!! at 2016年10月16日

    #7 楼 @ccy 升级 Appium 到 1.6.0-beta1 后,我在执行原有测试脚本时,提示 :An element could not be located on the page using the given search parameters。看了一下文档,关于 xpath 的改变确实是有一些问题,请问你有什么应对方法没?https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/migrating-to-xcuitest.md
    另外 Appium 新版本已经正式发布了吗,在官网上没有看到安装包呢?

  • #50 楼 @wenshi11019 我也遇到了同样的问题,同一套代码,在 uiautomation 成功运行,在 xcuitest 上运行失败了。Appium 的 log 中看不出什么端倪,代码报错是:An element could not be located on the page using the given search parameters。难道说用 xcuitest 时要改变 xpath 的定位路径?

  • #10 楼 @harsayer 去掉 sudo 报 7 楼的错误。昨天看了一个帖子,sudo 不是随随便能用的,可能需要重装 npm 之类的...

  • #8 楼 @harsayer 对的,我在 MAC 系统上操作。我也考虑过权限问题,用 sudo app-inspector -u UDID 命令运行过,运行时输出这两行后就运行不动了......

    >> port: 5678 was occupied, changed port: 5679
    >> WebDriverAgent version: 1.0.28
    
  • #6 楼 @harsayer 我部署好了环境,macaca doctor 检测也没报错(我只测 iOS,Android 相关的两项没安装),但是运行 app-inspector -u UDID 时(模拟器),报错如下:

    >> port: 5678 was occupied, changed port: 5679
    >> WebDriverAgent version: 1.0.28
    >> iOS device started: F7BF2FD0-6458-4CA1-8E25-FF17E971E20E
    >> inspector start at: http://192.168.44.128:5679
      <-- GET /
    
      Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/app-inspector/.temp'
          at Error (native)
          at Object.fs.mkdirSync (fs.js:794:18)
          at Object.sync [as mkdir] (/usr/local/lib/node_modules/app-inspector/node_modules/mkdirp/index.js:71:13)
          at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:56:5)
          at next (native)
          at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:65:19)
          at process._tickCallback (node.js:369:9)
    

    浏览器页面也打不开,提示: Internal Server Error。这是什么原因呢?求指导

  • 我把 xcode 升级到 8, 把 appium 升级到 1.6.0-beta1 后进行自动化测试,APP 刚被调起就闪退,模拟器也跟着闪退,终端显示的 log 如下:

    [HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities":{"deviceName":"iPhone SE","automationName":"XCUITest","appium-version":"1.6.0-beta1","platformVersion":"10.0","platformName":"iOS","app":"/Users/wanqingyao/Desktop/campus.app"}}
    [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone SE",...
    [Appium] Creating new XCUITestDriver session
    [Appium] Capabilities:
    [Appium]   deviceName: 'iPhone SE'
    [Appium]   automationName: 'XCUITest'
    [Appium]   appium-version: '1.6.0-beta1'
    [Appium]   platformVersion: '10.0'
    [Appium]   platformName: 'iOS'
    [Appium]   app: '/Users/wanqingyao/Desktop/campus.app'
    [debug] [XCUITest] XCUITestDriver version: 2.0.25
    [BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version.
    [BaseDriver] Session created with session id: 868d7623-877a-4b77-a5dd-9011fb27257b
    [debug] [XCUITest] Xcode version set to '8.0'
    [debug] [XCUITest] iOS SDK Version set to '10.0'
    [iOSSim] Constructing iOS simulator for Xcode version 8.0 with udid 'F7BF2FD0-6458-4CA1-8E25-FF17E971E20E'
    [XCUITest] Determining device to run tests on: udid: 'F7BF2FD0-6458-4CA1-8E25-FF17E971E20E', real device: false
    [BaseDriver] Using local app '/Users/wanqingyao/Desktop/campus.app'
    [debug] [XCUITest] Checking whether app is actually present
    [debug] [ios-app-utils] Getting bundle ID from app
    [debug] [iOSLog] Starting iOS 10.0 simulator log capture
    [debug] [iOSLog] System log path: /Users/wanqingyao/Library/Logs/CoreSimulator/F7BF2FD0-6458-4CA1-8E25-FF17E971E20E/system.log
    [XCUITest] Setting up simulator
    [debug] [iOS] No reason to set locale
    [debug] [iOS] No iOS / app preferences to set
    [XCUITest] Simulator with udid 'F7BF2FD0-6458-4CA1-8E25-FF17E971E20E' not booted. Booting up now
    [debug] [iOSSim] Killing all iOS Simulators
    [iOSSim] Starting simulator with command: open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID F7BF2FD0-6458-4CA1-8E25-FF17E971E20E
    [iOSSim] Tailing simulator logs until we encounter the string "SMS Plugin initialized"
    [iOSSim] We will time out after 60000ms
    [debug] [iOSSim] Waiting an extra 10000ms for the simulator to really finish booting
    [debug] [iOSSim] Done waiting extra time for simulator
    [iOSSim] Simulator booted in 63512ms
    [debug] [XCUITest] Installing app '/Users/wanqingyao/Desktop/campus.app' on device
    [XCUITest] Using default agent: /usr/local/lib/node_modules/.appium_npminstall/node_modules/.2.0.25@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
    [XCUITest] Using default bootstrap: /usr/local/lib/node_modules/.appium_npminstall/node_modules/.2.0.25@appium-xcuitest-driver/WebDriverAgent
    [XCUITest] Launching WebDriverAgent on the device
    [debug] [XCUITest] Carthage found: /usr/local/bin/carthage
    [debug] [XCUITest] Beginning test with command 'xcodebuild build test -project /usr/local/lib/node_modules/.appium_npminstall/node_modules/.2.0.25@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=F7BF2FD0-6458-4CA1-8E25-FF17E971E20E -configuration Debug' in directory '/usr/local/lib/node_modules/.appium_npminstall/node_modules/.2.0.25@appium-xcuitest-driver/WebDriverAgent'
    [XCUITest] Waiting for WebDriverAgent to start on device
    [debug] [XCUITest] Log file for xcodebuild test: /Users/wanqingyao/Library/Developer/Xcode/DerivedData/WebDriverAgent-efaqvcgcmeyaledxsduiebeyiwfc/Logs/Test/A16E3068-6D91-43D8-86CC-EA6794C3BFC1/Session-WebDriverAgentRunner-2016-10-09_194407-y1CzXI.log
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:13 wanqingyaodeMac CoreSimulatorBridge[2257]: Requesting installation of file:///Users/wanqingyao/Library/Developer/Xcode/DerivedData/WebDriverAgent-efaqvcgcmeyaledxsduiebeyiwfc/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/ with options: {
    [debug] [WebDriverAgent] Sim:       CFBundleIdentifier = "com.apple.test.WebDriverAgentRunner-Runner";
    [debug] [WebDriverAgent] Sim:       PackageType = Developer;
    [debug] [WebDriverAgent] Sim:       SimulatorRootPath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk";
    [debug] [WebDriverAgent] Sim:       SimulatorUserPath = "/Users/wanqingyao/Library/Developer/CoreSimulator/Devices/F7BF2FD0-6458-4CA1-8E25-FF17E971E20E/data";
    [debug] [WebDriverAgent] Sim:   }
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:19 wanqingyaodeMac CoreSimulatorBridge[2257]: Requesting launch of com.apple.test.WebDriverAgentRunner-Runner with options: {
    [debug] [WebDriverAgent] Sim:       arguments =     (
    [debug] [WebDriverAgent] Sim:           "-NSTreatUnknownArgumentsAsOpen",
    [debug] [WebDriverAgent] Sim:           NO,
    [debug] [WebDriverAgent] Sim:           "-ApplePersistenceIgnoreState",
    [debug] [WebDriverAgent] Sim:           YES
    [debug] [WebDriverAgent] Sim:       );
    [debug] [WebDriverAgent] Sim:       environment =     {
    [debug] [WebDriverAgent] Sim:           "DTX_CONNECTION_SERVICES_PATH" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Developer/Library/PrivateFrameworks/DTXConnectionServices.framework";
    [debug] [WebDriverAgent] Sim:           "DYLD_FRAMEWORK_PATH" = "/Users/wanqingyao/Library/Developer/Xcode/DerivedData/WebDriverAgent-efaqvcgcmeyaledxsduiebeyiwfc/Build/Products/Debug-iphonesimulator:/Users/wanqingyao/Library/Developer/Xcode/DerivedData/WebDriverAgent-efaqvcgcmeyaledxsduiebeyiwfc/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks";
    [debug] [WebDriverAgent] Sim:           "DYLD_LIBRARY_PATH" = "/Users/wanqingyao/Library/Developer/Xcode/DerivedData/WebDriverAgent-efaqvcgcmeyaledxsduiebeyiwfc/Build/Products/Debug-iphonesimulator:/Users/wanqingyao/Library/Developer/Xcode/DerivedData/WebDriverAgent-efaqvcgcmeyaledxsduiebeyiwfc/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks";
    [debug] [WebDriverAgent] Sim:           NSUnbufferedIO = YES;
    [debug] [WebDriverAgent] Sim:           "OS_ACTIVITY_DT_MODE" = YES;
    [debug] [WebDriverAgent] Sim:           "XCODE_DBG_XPC_EXCLUSIONS" = "com.apple.dt.xctestSymbolicator";
    [debug] [WebDriverAgent] Sim:           XCTestConfigurationFilePath = "/var/folders/tf/89068tvn199bhwpk5r3hg03h0000gn/T/com.apple.dt.XCTest/630FF0A9-E7F8-4D71-B2E2-0D775AF2E5B6/remote-container/tmp/WebDriverAgentRunner-630FF0A9-E7F8-4D71-B2E2-0D775AF2E5B6.xctestconfiguration";
    [debug] [WebDriverAgent] Sim:           "__XCODE_BUILT_PRODUCTS_DIR_PATHS" = "/Users/wanqingyao/Library/Developer/Xcode/DerivedData/WebDriverAgent-efaqvcgcmeyaledxsduiebeyiwfc/Build/Products/Debug-iphonesimulator";
    [debug] [WebDriverAgent] Sim:           "__XPC_DYLD_FRAMEWORK_PATH" = "/Users/wanqingyao/Library/Developer/Xcode/DerivedData/WebDriverAgent-efaqvcgcmeyaledxsduiebeyiwfc/Build/Products/Debug-iphonesimulator";
    [debug] [WebDriverAgent] Sim:           "__XPC_DYLD_LIBRARY_PATH" = "/Users/wanqingyao/Library/Developer/Xcode/DerivedData/WebDriverAgent-efaqvcgcmeyaledxsduiebeyiwfc/Build/Products/Debug-iphonesimulator";
    [debug] [WebDriverAgent] Sim:       };
    [debug] [WebDriverAgent] Sim:       stderr = "/dev/ttys001";
    [debug] [WebDriverAgent] Sim:       stdout = "/dev/ttys001";
    [debug] [WebDriverAgent] Sim:       "wait_for_debugger" = 0;
    [debug] [WebDriverAgent] Sim:   }
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:19 wanqingyaodeMac CoreSimulatorBridge[2257]: [Common] [FBSSystemService][0x2cdb] Sending request to open "com.apple.test.WebDriverAgentRunner-Runner"
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:19 wanqingyaodeMac CoreSimulatorBridge[2257]: [Common] [FBSSystemService][0x2cdb] Request successful: <FBSProcessHandle: 0x7f915bc2f560; XCTRunner:2591; valid: YES>
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:20 wanqingyaodeMac XCTRunner[2591]: assertion failed: 15G31 14A345: libxpc.dylib + 62597 [37A9DF49-35C1-3D93-B854-B35CACF0100F]: 0x7d
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:20 wanqingyaodeMac XCTRunner[2591]: Running tests...
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:28 --- last message repeated 1 time ---
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:28 wanqingyaodeMac XCTRunner[2591]: Continuing to run tests in the background with task ID 1
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:29 --- last message repeated 14 times ---
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:29 wanqingyaodeMac XCTRunner[2591]: Built at Oct  9 2016 19:44:10
    [XCUITest] Detected that WebDriverAgent is running at url 'http://192.168.44.128:8100'
    [debug] [WebDriverAgent] Sim: Oct  9 19:44:29 wanqingyaodeMac XCTRunner[2591]: ServerURLHere->http://192.168.44.128:8100<-ServerURLHere
    [XCUITest] WebDriverAgent started at url 'http://192.168.44.128:8100'
    [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bu...
    [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"B570...
    [Appium] New XCUITestDriver session created successfully, session 868d7623-877a-4b77-a5dd-9011fb27257b added to master session list
    [MJSONWP] Responding to client with driver.createSession() result: {"webStorageEnabled":false,...
    [HTTP] <-- POST /wd/hub/session 200 113848 ms - 444 
    [HTTP] --> POST /wd/hub/session/868d7623-877a-4b77-a5dd-9011fb27257b/element {"using":"xpath","sessionId":"868d7623-877a-4b77-a5dd-9011fb27257b","value":"//UIAApplication[1]/UIAWindow[7]/UIAAlert[1]/UIACollectionView[1]/UIACollectionCell[2]"}
    [MJSONWP] Calling AppiumDriver.findElement() with args: ["xpath","//UIAApplication[...
    [debug] [XCUITest] Executing command 'findElement'
    [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, accessibility id
    [XCUITest] Rewrote incoming selector from '//UIAApplication[1]/UIAWindow[7]/UIAAlert[1]/UIACollectionView[1]/UIACollectionCell[2]' to '//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[7]/XCUIElementTypeAlert[1]/XCUIElementTypeCollectionView[1]/XCUIElementTypeCollectionCell[2]' to match XCUI type. You should consider updating your tests to use the new selectors directly
    [debug] [BaseDriver] Waiting up to 0 ms for condition
    [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/B5700BA5-8AE3-425B-B02F-D7EE6A498479/element] with body: {"using":"xpath","value":"/...
    [JSONWP Proxy] Got response with status 200: {"value":{"using":"xpath","...
    [HTTP] <-- POST /wd/hub/session/868d7623-877a-4b77-a5dd-9011fb27257b/element 500 272 ms - 164 
    [HTTP] --> POST /wd/hub/session/868d7623-877a-4b77-a5dd-9011fb27257b/appium/app/close {"sessionId":"868d7623-877a-4b77-a5dd-9011fb27257b"}
    [MJSONWP] Calling AppiumDriver.closeApp() with args: ["868d7623-877a-4b77-a5dd-9...
    [debug] [XCUITest] Executing command 'closeApp'
    [JSONWP Proxy] Proxying [DELETE /session/868d7623-877a-4b77-a5dd-9011fb27257b] to [DELETE http://localhost:8100/session/B5700BA5-8AE3-425B-B02F-D7EE6A498479] with no body
    [JSONWP Proxy] Got response with status 200: "{\n  \"value\" : {\n\n  },...
    [XCUITest] Shutting down WebDriverAgent
    [XCUITest] Simulator log exited with code 'null'
    [XCUITest] xcodebuild exited with code 'null' and signal 'SIGTERM'
    [debug] [XCUITest] Running iOS simulator reset flow
    [debug] [XCUITest] Shutting down simulator
    [debug] [iOSSim] Killing all iOS Simulators
    [debug] [XCUITest] Cleaning simulator state.
    [debug] [iOSSim] Cleaning app data files for 'campus.app', 'com.whmx.campus'
    [debug] [iOSSim] Building bundle path map
    [debug] [iOSSim] Building bundle path map
    [debug] [iOSSim] Deleting directory: '/Users/wanqingyao/Library/Developer/CoreSimulator/Devices/F7BF2FD0-6458-4CA1-8E25-FF17E971E20E/data/Containers/Data/Application/3923C5FA-171A-4388-B616-292707A043AC'
    [debug] [iOSSim] Deleting directory: '/Users/wanqingyao/Library/Developer/CoreSimulator/Devices/F7BF2FD0-6458-4CA1-8E25-FF17E971E20E/data/Containers/Bundle/Application/7FC319A9-7801-42EF-8417-4227518FA609'
    [debug] [iOSSim] Deleting file: '/Users/wanqingyao/Library/Developer/CoreSimulator/Devices/Library/Preferences/com.whmx.campus.plist'
    [debug] [iOSSim] Killing any simulator daemons for F7BF2FD0-6458-4CA1-8E25-FF17E971E20E
    [iOSSim] Cleaning simulator F7BF2FD0-6458-4CA1-8E25-FF17E971E20E
    [debug] [XCUITest] Resetting simulator
    [debug] [XCUITest] Shutting down simulator
    [debug] [iOSSim] Killing all iOS Simulators
    [debug] [iOSLog] Stopping iOS log capture
    [iOS] Successfully closed the [/Users/wanqingyao/Desktop/campus.app] app.
    [MJSONWP] Responding to client with driver.closeApp() result: null
    [HTTP] <-- POST /wd/hub/session/868d7623-877a-4b77-a5dd-9011fb27257b/appium/app/close 200 14952 ms - 76 
    [HTTP] --> DELETE /wd/hub/session/868d7623-877a-4b77-a5dd-9011fb27257b {}
    [MJSONWP] Calling AppiumDriver.deleteSession() with args: ["868d7623-877a-4b77-a5dd-9...
    [debug] [XCUITest] Running iOS simulator reset flow
    [Appium] Removing session 868d7623-877a-4b77-a5dd-9011fb27257b from our master session list
    [debug] [MJSONWP] Received response: null
    [debug] [MJSONWP] But deleting session, so not returning
    [MJSONWP] Responding to client with driver.deleteSession() result: null
    [HTTP] <-- DELETE /wd/hub/session/868d7623-877a-4b77-a5dd-9011fb27257b 200 3 ms - 76 
    

    其中有两句 log 是这样的:

    [BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version.
    
    [XCUITest] Rewrote incoming selector from '//UIAApplication[1]/UIAWindow[7]/UIAAlert[1]/UIACollectionView[1]/UIACollectionCell[2]' to '//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[7]/XCUIElementTypeAlert[1]/XCUIElementTypeCollectionView[1]/XCUIElementTypeCollectionCell[2]' to match XCUI type. You should consider updating your tests to use the new selectors directly
    

    我这个闪退的原因是什么呢,莫非也是因为 webdriveragent 对 ios10 的支持有问题?还是说脚本中原来 xpath 定位的路径修要修改?向大家请教一下,求指导😀

  • #11 楼 @JasonChiang 我也试了大神们提供的各种解决办法,问题依然存在;并且现在遇到了升级 Appium 的新问题,头大呀

  • #9 楼 @jackie 好的 明白你的意思了,我试试 谢谢

  • #2 楼 @sanlengjingvv 我也是看了别人的帖子,https://testerhome.com/topics/3885,然后发现加了这句后没用

  • #1 楼 @jackie TableCell 不支持滑动的吗?手工测试的时候是可以滑动的呀

  • #3 楼 @lingcizhisheng 这一行有和没有,结果是一样的。我也是看了其他帖子后加上了这一句,结果没什么用。

  • #4 楼 @xinxjxjxj flick 也之前试过了,不行,报相同的错误