参考文档:https://testhome.com/topics/23868
一、环境搭建准备
- 安装homebrew:https://www.jianshu.com/p/2af8d44d7230
- 安装crathage:brew install carthage
- 安装node:brew install node
- 安装python3.7
- 安装xcode
- 安装xcode command line tools:https://www.jianshu.com/p/729fb02a506c
- xcode->perferences->locations->选择Command line tools
二、安装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安装成功
-
在浏览器中输入http://172.25.67.84:8100/status,查看效果图,说明配置成功
-