1、先获取session,实例化driver
2、自动安装APP
//安装driver.InstallApp("APP的路径"); //判断是否安装完成,返回true\false bool isInstalled = driver.IsAppInstalled("app包名");
3、重启APP
//重装过后要唤起APP driver.ResetApp();
4、卸载
driver.RemoveApp("APP包名");
5、关闭APP
//关闭APP,不退出session driver.closeApp(); //退出APP,关闭Session driver.quit();
原文地址:https://www.cnblogs.com/Oliver-wangfei/p/10824328.html
时间: 2024-10-04 03:47:05