Appium 求助 ios 10.3.3+ appium 1.7.2 + 控件查找 10 分钟反馈;查找控件失败;25202 错误

chma · 2017年11月24日 · 最后由 xiao 回复于 2017年11月27日 · 1021 次阅读

## 问题 1:IOS +Appium+python xpath 查找控件 10 分钟反馈
## 日志如下
[Xcode] t = 9585.07s Get all elements bound by index for: Elements matching predicate 'wdUID IN {126} AND (1 == 1 OR identifier == 0 OR frame == 0 OR value == 0 OR title == 0 OR label == 0 OR elementType == 0 OR enabled == 0 OR placeholderValue == 0)'
[Xcode] t = 9585.13s Snapshot accessibility hierarchy for com.whty.slm
[Xcode] t = 9585.31s Find: Descendants matching type StaticText
[Xcode] t = 9585.32s Find: Elements matching predicate 'wdUID IN {126} AND (1 == 1 OR identifier == 0 OR frame == 0 OR value == 0 OR title == 0 OR label == 0 OR elementType == 0 OR enabled == 0 OR placeholderValue == 0)'
[Xcode] t = 9585.32s Use cached accessibility hierarchy for com.whty.slm
[Xcode] t = 9585.34s Find: Descendants matching type Alert
[Xcode] t = 9585.35s Use cached accessibility hierarchy for com.whty.slm
[Xcode] t = 9585.37s Find: Descendants matching type Sheet
[Xcode] t = 9585.37s Find the Application "com.apple.springboard" 0x1740aba60
[Xcode] t = 9585.37s Snapshot accessibility hierarchy for com.apple.springboard
[Xcode] t = 9585.53s Use cached accessibility hierarchy for com.apple.springboard
[Xcode] t = 9585.55s Find: Descendants matching type Alert
[Xcode] t = 9585.55s Use cached accessibility hierarchy for com.apple.springboard
[Xcode] t = 9585.57s Find: Descendants matching type Sheet
[Xcode] t = 9585.61s Find the StaticText
[Xcode] t = 9585.61s Snapshot accessibility hierarchy for com.whty.slm
[Xcode] t = 9585.78s Find: Descendants matching type StaticText
[Xcode] t = 9585.79s Find: Elements matching predicate 'wdUID IN {126} AND (1 == 1 OR identifier == 0 OR frame == 0 OR value == 0 OR title == 0 OR label == 0 OR elementType == 0 OR enabled == 0 OR placeholderValue == 0)'
[Xcode] t = 9585.80s Find: Element at index 0
[Xcode] t = 9585.80s Use cached accessibility hierarchy for com.whty.slm
[Xcode] t = 9585.82s Find: Descendants matching type Alert
[Xcode] t = 9585.83s Use cached accessibility hierarchy for com.whty.slm
[Xcode] t = 9585.85s Find: Descendants matching type Sheet
[Xcode] t = 9585.85s Find the Application "com.apple.springboard" 0x1740aba60
[Xcode] t = 9585.85s Snapshot accessibility hierarchy for com.apple.springboard
[Xcode] t = 9586.00s Use cached accessibility hierarchy for com.apple.springboard
[Xcode] t = 9586.02s Find: Descendants matching type Alert
[Xcode] t = 9586.02s Use cached accessibility hierarchy for com.apple.springboard
[Xcode] t = 9586.04s Find: Descendants matching type Sheet
[Xcode] t = 9586.05s Snapshot accessibility hierarchy for com.whty.slm
[Xcode] t = 9586.22s Find: Descendants matching type StaticText
[Xcode] t = 9586.23s Find: Elements matching predicate 'wdUID IN {126} AND (1 == 1 OR identifier == 0 OR frame == 0 OR value == 0 OR title == 0 OR label == 0 OR elementType == 0 OR enabled == 0 OR placeholderValue == 0)'
[Xcode] t = 9586.23s Find: Element at index 0
[Xcode] t = 9586.23s Find the "¥0.00" StaticText
[Xcode] t = 9586.24s Use cached accessibility hierarchy for com.whty.slm
[Xcode] t = 9586.26s Find: Descendants matching type StaticText
[Xcode] t = 9586.26s Find: Elements matching predicate 'wdUID IN {126} AND (1 == 1 OR identifier == 0 OR frame == 0 OR value == 0 OR title == 0 OR label == 0 OR elementType == 0 OR enabled == 0 OR placeholderValue == 0)'
[Xcode] t = 9586.27s Find: Element at index 0
[Xcode] t = 9589.31s Find the Application "com.whty.slm" 0x1700be5a0
[Xcode] t = 9589.31s Snapshot accessibility hierarchy for com.whty.slm
[Xcode] t = 9589.52s Find the Application "com.whty.slm" 0x1700be5a0
[Xcode] t = 9589.52s Use cached accessibility hierarchy for com.whty.slm
[Xcode] t = 9589.55s Find the Application "com.whty.slm" 0x1700be5a0
[Xcode] t = 9589.55s Use cached accessibility hierarchy for com.whty.slm
[Xcode] 2017-11-24 14:09:27.511680+0800 XCTRunner[658:447322] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:09:42.553354+0800 XCTRunner[658:447206] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:09:57.975345+0800 XCTRunner[658:447427] Enqueue Failure: UI Testi
[Xcode] ng Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:10:13.001755+0800 XCTRunner[658:423851] Failed to fetch hit point for Cell 0x17437cf80: traits: 8589934592, {{0.0, 64.0}, {320.0, 228.3}} - *** -[NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:10:13.017165+0800 XCTRunner[658:447322] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:10:28.098476+0800 XCTRunner[658:447397] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:10:43.125814+0800 XCTRunner[658:423851] Failed to fetch hit point for PageIndicator 0x174361e00: traits: 8589939200, {{126.0, 245.5}, {68.0, 42.0}}, value: 第 1 页(共 2 页)- *** -[
NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:10:43.173962+0800 XCTRunner[658:447322] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:10:58.198526+0800 XCTRunner[658:423851] Failed to fetch hit point for Cell 0x174365640: traits: 8589934592, {{0.0, 292.3}, {320.0, 50.0}} - *** -[NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:10:58.384590+0800 XCTRunner[658:447322] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:11:13.409508+0800 XCTRunner[658:423851] Failed to fetch hit point for Cell 0x174168940: traits: 8589934592, {{0.0, 342.3}, {320.0, 50.0}} - *** -[
NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:11:13.614731+0800 XCTRunner[658:447652] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:11:28.641982+0800 XCTRunner[658:423851] Failed to fetch hit point for Cell 0x17416ffc0: traits: 8589934592, {{0.0, 392.3}, {320.0, 50.0}} - *** -[NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:11:28.851543+0800 XCTRunner[658:447612] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:11:43.876793+0800 XCTRunner[658:423851] Failed to fetch hit point for Cell 0x1743645c0: traits: 8589934592, {{0.0, 442.3}, {320.0, 15.0}} - *** -[
NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:11:43.926448+0800 XCTRunner[658:447694] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:11:58.952782+0800 XCTRunner[658:423851] Failed to fetch hit point for Cell 0x17416f180: traits: 8589934592, {{0.0, 457.3}, {320.0, 64.0}} - *** -[NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:11:59.190660+0800 XCTRunner[658:447606] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:12:14.215949+0800 XCTRunner[658:423851] Failed to fetch hit point for Cell 0x17437d280: traits: 8589934592, {{0.0, 521.3}, {320.0, 64.0}} - *** -[
NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:12:14.616398+0800 XCTRunner[658:447606] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:12:29.639191+0800 XCTRunner[658:423851] Failed to fetch hit point for Button 0x17417c800: traits: 8589934593, {{0.0, 0.0}, {260.0, 40.0}}, label: '激活' - *** -[NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:12:29.690586+0800 XCTRunner[658:447820] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:12:44.718764+0800 XCTRunner[658:423851] Failed to fetch hit point for Button 0x174171700: traits: 8589934593, {{0.0, 0.0}, {260.0, 40.0}}, label: '删除' - *** -[
NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:12:44.761671+0800 XCTRunner[658:447820] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:12:59.789023+0800 XCTRunner[658:423851] Failed to fetch hit point for Button 0x1741711c0: traits: 8589934593, {{0.0, 0.0}, {260.0, 40.0}}, label: '申请' - *** -[NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:13:00.005578+0800 XCTRunner[658:447863] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:13:15.029983+0800 XCTRunner[658:423851] Failed to fetch hit point for Other 0x174171340: {{0.0, 0.0}, {320.0, 568.0}} - *** -[
NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:13:15.046292+0800 XCTRunner[658:448011] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:13:30.075641+0800 XCTRunner[658:423851] Failed to fetch hit point for ActivityIndicator 0x174361a40: {{148.0, 256.5}, {24.0, 24.0}}, label: '进行中', value: 1 - *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]

## 问题 2:控件查找失败
## 日志如下
[Xcode] 2017-11-24 14:16:00.974062+0800 XCTRunner[658:448492] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:16:15.998084+0800 XCTRunner[658:423851] Failed to fetch hit point for ActivityIndicator 0x170176f80: {{148.0, 256.5}, {24.0, 24.0}}, label: '进行中', value: 1 - *** -[NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:16:16.013581+0800 XCTRunner[658:448492] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:16:31.043028+0800 XCTRunner[658:423851] Failed to fetch hit point for StaticText 0x17016e340: traits: 64, {{123.0, 291.5}, {74.0, 18.0}}, label: '正在加载...' - *** -[
NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:16:31.060520+0800 XCTRunner[658:448607] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:16:46.087934+0800 XCTRunner[658:423851] Failed to fetch hit point for Other 0x17036dbc0: {{115.0, 241.5}, {90.0, 85.0}} - *** -[NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:16:46.112046+0800 XCTRunner[658:448660] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:17:01.139937+0800 XCTRunner[658:423851] Failed to fetch hit point for Other 0x17036dbc0: {{115.0, 241.5}, {90.0, 85.0}} - *** -[
NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:17:01.155218+0800 XCTRunner[658:448663] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTDaemonErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[Xcode] 2017-11-24 14:17:16.183269+0800 XCTRunner[658:423851] Failed to fetch hit point for ActivityIndicator 0x170176f80: {{148.0, 256.5}, {24.0, 24.0}}, label: '进行中', value: 1 - *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[Xcode] 2017-11-24 14:17:16.197640+0800 XCTRunner[658:448705] Enqueue Failure: UI Testing Failure - Failure fetchi
[JSONWP Proxy] Got response with status 200: {"value":{"using":"xpath","value":"//XCUIElementTypeStaticText[@name=\"微信支付\"]","description":"unable to find an element"},"sessionId":"649CD637-E214-4348-A71D-C487C70C4295","status":7}

共收到 1 条回复 时间 点赞

我也有遇到,不知道什么原因

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册