问题1:session 创建失败解决,手机端重新安装了appium setting后解决了
问题2:本地的host中没有配置 127.0.0.1 localhost
问题3:安装npm appium-uiautomator2-driver 出错
命令行执行:
npm init
接着一直enter键
npm install -g typescript
npm install appium-uiautomator2-driver
问题4:执行小程序中的webview时,提示chromedriver和chrome的版本不相符
如果你是用命令行启动appium的话,请在“/usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac"下替换相对应的chromedriver
如果你是用appium客户端启动话,请在"/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver"下替换相对应的chromedriver
另外我还配置了一个环境变量其实我也不知道有没有起到作用
命令行
touch .bash_profile
open -e .bash_profile
编辑文件
export PATH=$PATH:/usr/local/bin/ChromeDriver
要想配置生效还要执行
source .bash_profile
重启appium执行下就好了