一、环境搭建准备

二、安装wda并运行WebDriverAgentRunner

  • git clone https://github.com/appium/WebDriverAgent.git (https://github.com/appium/WebDriverAgent
  • cd WebDriverAgent,执行./Scripts/bootstrap.sh
  • 打开WebDriverAgent.xcodeproj
  • Scheme选择WebDriverAgentRunner,Product->Test
  • 当看到控制台输出:

    ServerURLHere->http://172.25.67.84:8100<-ServerURLHere,表示wda安装成功

  • Wda自动化环境搭建[IOS]
  • 在终端执行命令,把当前连接设备的8100端口(SSH端口)映射到电脑的8100端口

    iproxy 8100 8100

    在浏览器中输入http://172.25.67.84:8100/status,查看效果图,说明配置成功

  • Wda自动化环境搭建[IOS]

三、wda安装到真机 

1.选中WebDriverAgentLib修改Build Settings-->Product Bundle Identifier修改com.facebook.WebDriverAgentLib为唯一的bundle id,见图

2.选中WebDriverAgentRunner修改Build Settings-->Product Bundle Identifier修改com.facebook.WebDriverAgentLib为唯一的bundle id,同上

Wda自动化环境搭建[IOS]

3.修改WebDriverAgentLib和WebDriverAgentRunner的Signing,见图

Wda自动化环境搭建[IOS]Wda自动化环境搭建[IOS]

 

相关文章:

  • 2021-10-29
  • 2021-01-08
  • 2021-12-06
  • 2021-12-06
  • 2021-05-26
  • 2021-12-01
猜你喜欢
  • 2021-09-30
  • 2021-05-30
  • 2021-07-12
  • 2021-09-11
  • 2021-09-16
  • 2021-11-22
  • 2021-10-17
相关资源
相似解决方案