The UiAutomator2 driver supports a number of standard Appium capabilities, but has an additional set of capabilities that modulate the behavior of the driver. Otherwise, Appium will try to determine these automatically from your app manifest. It is highly recommended to also set the appPackage and appActivity capabilities in order to let Appium know exactly which package and activity should be launched for your application. Of course, you must also include appropriate platformName (=Android), platformVersion, deviceName, and app capabilities, at a minimum. The way to start a session using the UiAutomator2 driver is to include the automationName capability in your new session request, with the value UiAutomator2.
0 Comments
Leave a Reply. |