JAVA自动化,使用UIAutomator2加快Appium运行速度 加如图参数: 参数如下: desiredCaps.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.ANDROID_UIAUTOMATOR2);