当前位置:   article > 正文

移动端自动化-IOS之WebDriverAgent安装(二)

移动端自动化-IOS之WebDriverAgent安装(二)

配置WebDriverAgent
步骤如下:

  • 进入到WebDriverAgent项目下
  • 命令行输入 ./Scripts/bootstrap.sh
  • 启动WebDriverAgent项目
  • 配置项目信息(开发者信息)具体内容百度

当运行WebDriverAgent时会发生报错,保存信息如下图:在这里插入图片描述
解决方法:双击,进入到报错代码处,修改assign为unsafe_unretained,执行clean and build,错误就没有了
需要添加文件中判断:WebDriverAgent/WebDriverAgentLib/Utilities/FBFailureProofTestCase.m,修改26~36行,添加如下红色代码
if ([self respondsToSelector:@selector(internalImplementation)]) {
self.internalImplementation =
(_XCTestCaseImplementation *)[FBXCTestCaseImplementationFailureHold

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/824304
推荐阅读
相关标签
  

闽ICP备14008679号