安装要求

  • macOS, Linux or Windows operating system
  • Node.js 14+
  • NPM (Node Package Manager) 8+

appium安装

npm install -g appium@next

#注:npm install -g appium 是安装appium v1

 xcuitest,uiautomator2驱动安装

appium driver install xcuitest
appium driver install uiautomator2

wda编译

运行appium 会显示已经安装的驱动或者插件的地址

appium-xcuitest-driver 路径:/Users/mac/node_modules/appium-xcuitest-driver 

# 进入目录
cd /Users/mac/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/Scripts

# 执行命令
node build-webdriveragent.js

参考链接: GitHub - appium/appium: Cross-platform automation framework for all kinds of your apps built on top of W3C WebDriver protocol

https://github.com/appium/appium/blob/master/packages/appium/docs/en/guides/migrating-1-to-2.md

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐