安装Python和 uiautomator2 库
pip install –pre uiautomator2
pip install pillow
安装Mumu模拟器,从问题诊断菜单获取adb端口

下载https://dl.google.com/android/repository/platform-tools_r29.0.5-windows.zip,将压缩包里的adb.exe替换Mumu模拟器安装目录的子目录shell下的adb.exe
进入cmd窗口,运行adb connect 127.0.0.1:16384

接着运行:python -m uiautomator2 init 在模拟器中安装atx agent


pip安装weditor,注意 要降低版本安装:0.7.3不可以,0.6.4可以

然后运行:python -m weditor

可以看到自动在浏览器启动了MuMu模拟器界面

发表评论