解决办法:
修改webDriverAgent
里FBConfiguration.m
里,如下参数的值:
//默认是15s,可以调整到60s,也可以设置为0秒,耗时比较久的原因是需要获取每个elements的isVisible属性,设置为0,会使用webDriverAgent里的算法计算isVisible属性的值
static NSTimeInterval FBCustomSnapshotTimeout = 60.;
关于webdriveragent存放路径问题:
本人使用Mac,命令行和应用程序安装appiun的路径列在了下面:
//appium desktop里的wda具体路径在
/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent
//命令行appium里wda具体路径在
/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent
也可以单独下载webdriveragent
工程
https://github.com/appium/WebDriverAgent
https://github.com/alibaba/taobao-iphone-device/issues/70