macaca icon indicating copy to clipboard operation
macaca copied to clipboard

macaca inspector测试ios的微信公众号微信直接崩掉后台报错,但是安卓没问题

Open CodeToSurvive1 opened this issue 10 years ago • 5 comments

  • Macaca Version:
  • Macaca Doctor Logs:
  • Operate System:
  • Programming Language:
The source may be wrong, please report with below message at:
    [object Object]
    ****** xctest source start *******
    {"value":{"tree":{"bounds":"{{0, 0}, {0, 0}}","rawIdentifier":null,"isVisible":"0","value":null,"label":null,"type":"Any","name":null,"isEnabled":"0"}},"sessionId":null,"status":0}
    '****** xctest source end *******

  TypeError: Cannot read property 'origin' of undefined
      at node (/usr/local/lib/node_modules/app-inspector/lib/ios.js:28:9)
      at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:61:22)
      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)

macaca inspector测试ios的微信公众号,点击具体的公众号,微信直接崩掉后台报错如上,但是安卓没问题

CodeToSurvive1 avatar Oct 18 '16 02:10 CodeToSurvive1

又是 xctest 拿到 xml 里面没有结构的问题

meowtec avatar Oct 18 '16 06:10 meowtec

webdriveragent也是同样的问题,进入公众号对话框,inspect或请求source都会崩溃,我在WDA提了个issue,作者说是app问题,跟wda无关: https://github.com/facebook/WebDriverAgent/issues/340

jessezyl avatar Oct 28 '16 02:10 jessezyl

inspector 用的就是 webdriveragent.

其他一些应用的某些页面也出现了这种问题,很无奈。

meowtec avatar Oct 30 '16 10:10 meowtec

https://github.com/alibaba/macaca/issues/421 已解决

xudafeng avatar Jan 15 '17 14:01 xudafeng

@jessezyl 原因确实出自App本身,现在重新查这个问题。

追查到私有方法 [application resolve] 失败的,重复多次获取失败导致时间也变得很长

xudafeng avatar Mar 04 '17 13:03 xudafeng