使用appium对微信小程序进行测试
1.先写一下有关启动微信的配置参数
public static AppiumDriver weixin() throws MalformedURLException {
DesiredCapabilities cap=new DesiredCapabilities();
cap.setCapability("platformName", "Android");
cap.setCapability("platformVersion", "7.1.1");
cap.setCapability("unicodeKeyboard", "true");//使用unicode输入法
cap.setCapability("resetKeyboard", "true");//重置输入法到初始状态
cap.setCapability("deviceName", "356a1c2e");
cap.setCapability("appPackage", "com.tencent.mm");
cap.setCapability("appActivity", ".ui.LauncherUI");
cap.setCapability("fastReset", "false");
cap.setCapability("fullReset", "false");
cap.setCapability("noReset", "true");//启动app时不要清除app里的原有的数据
cap.setCapability("automat