终端输入appium没有找到
打开应用程序,显示包内容
运行Appium可执行文件
可多次运行打开多个
把appium所在路径加入环境变量
安装appium有两种方式:
- 使用 npm (Node js 的管理与分发工具) 安装Appium
- 使用Appium官方安装包安装
https://anikikun.gitbooks.io/appium-girls-tutorial/content/2_install_appium.html
安装出错
使用sudo npm install -g appium
出错:
无奈选择sudo npm install -g appium --chromedriver-skip-install
安装,成了。(哎,总觉得少了点东西)
adb找不到模拟器
adb kill-server
adb start-server
重启服务即可
查询模拟器所占用的端口号:
ps aux
找到
这个即为应用的进程号,
(如果知道进程的名字则可以用ps aux | grep NemuPlayer
缩小范围😩)
根据进程号查询所占端口号:
lsof -i | grep 13927
这里就可以看到端口号了。
笔记
{
“platformName”: “Android”,
“appium: appPackage”: “com.google.android.apps.nexuslauncher”,
“appium:noReset”: true,
“appium:appActivity”: “.NexusLauncherActivity”,
“appium:automationName”: “Appium”,
“appium:uiautomator2ServerInstallTimeout”: 30000,
“appium:platformVersion”: “8.1.0”
}