I'm writing automation test for a android native appilcation,but some parts of the application working only with the capabilty
//cap.setCapability("automationName", "uiautomator2");
cap.setCapability("automationName", "uiautomator");
and other parts working only with
cap.setCapability("automationName", "uiautomator2");
So I don't know if I can change the capability