1.启动模拟器
2.nox_adb.exe connect 127.0.0.1:62001
3.adb connect 127.0.0.1:62001
4.启动appium-server
脚本代码如下:
from appium import webdriver # appium服务监听地址 server = 'http://127.0.0.1:4723/wd/hub' # app启动参数 desired_caps = { "platformName": "Android", "platformVersion": "7.1.2", "deviceName": "MI 9", "appPackage": "com.chuxin.tlryb", "appActivity": "com.nemo.nemou3d.GameMainActivity" } # 驱动 driver = webdriver.Remote(server, desired_caps) 脚本就可以启动当前app