appium不同姿势安装
一 桌面版(打开很慢,常用于辅助元素定位)
1.官网下载window版本:
2.直接点击图标即可打开
3.启动server
![](https://upload-images.jianshu.io/upload_images/5633848-c453bb87ee9161af.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/700)
二 命令行版(打开很快,常用于执行脚本)
1.jdk
安装jdk并配置环境变量
验证:输入java -version,查看java安装版本
![](https://upload-images.jianshu.io/upload_images/5633848-f0d7f9def89e9eec.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/679)
2.node.js
安装node后,在PATH中添加:D:\Program Files\nodejs;
验证: 输入node -v,查看node安装版本
![](https://upload-images.jianshu.io/upload_images/5633848-be55d2608615f7dc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/330)
3.andriod sdk
android sdk安装完毕后,需要配置环境变量
新建ANDROID_HOME D:\ProgramFiles (x86)\Android\android-sdk
在PATH中添加:%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;
验证:cmd输入adb
![](https://upload-images.jianshu.io/upload_images/5633848-d61f7698f5d0764e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/700)
4.安装appium
npm --registry http://registry.npm.taobao.org install appium -g
验证:cmd输入appium
![](https://upload-images.jianshu.io/upload_images/5633848-7727475dd55c3ed6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/700)
5.安装appium-doctor检测
npm --registry http://registry.npm.taobao.org install appium-doctor -g
验证:cmd输入appium-doctor
![](https://upload-images.jianshu.io/upload_images/5633848-7eb70e7180d279fe.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/700)
6安装python-client:
pip install Appium-Python-Client
验证:cmd输入 appium -v
![](https://upload-images.jianshu.io/upload_images/5633848-9570dd45d8b87786.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/326)