macos
上做UI自动化的公共方法,基于 appium2.0
和 mac2
driver的二次封装
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Agents/Xcode Helper.app
在macos的shell中,输入以下指令,并回车
automationmodetool enable-automationmode-without-authentication
下载安装,安装完成后,打开mac的终端,输入npm,有命令行提示代表安装成功
npm install -g nrm
或者简写: npm i -g nrm
nrm use tencent
npm i -g appium@next
来安装 Appium 2.0
版本
appium driver list
会发现当前未安装mac2
的驱动,下一步即将安装
appium driver install mac2
等待 mac
驱动安装完成
appium
然后回车即可启动
安装或者解压后点击运行
{
"appium:automationName": "Mac2",
"platformName": "mac",
"appium:bundleId": "xxx",
"appium:noReset": true
}