安装appium桌面版和命令行版
一 桌面版(打开很慢,常用于辅助元素定位)
1.官网下载window版本:
github search appium desktop download latest version
2. install
3.启动server
二 命令行版(打开很快,常用于执行脚本)
1.jdk
安装jdk并配置环境变量
验证:输入java -version,查看java安装版本

2.node.js
安装node后,在PATH中添加:D:Program Files odejs;
验证: 输入node -v,查看node安装版本

3.andriod sdk
android sdk安装完毕后,需要配置环境变量
新建ANDROID_HOME D:ProgramFiles (x86)Androidandroid-sdk
在PATH中添加:%ANDROID_HOME%platform-tools;%ANDROID_HOME% ools;
验证:cmd输入adb

4.安装appium
npm --registry http://registry.npm.taobao.org install appium -g
如果安装最后chromedriver出错,记得设置VPN然后重试
验证:cmd输入appium

5.安装appium-doctor检测
npm --registry http://registry.npm.taobao.org install appium-doctor -g
验证:cmd输入appium-doctor

6安装python-client:
pip install Appium-Python-Client
验证:cmd输入 appium -v