Device : Pixel XL OS: Andriod 13 Appium version : 2.2.3
Start appium server automatically.
Creating capabilities.
Creating object of andriod driver/IO driver.
ref:https://github.com/appium/java-client#usage-examples
Inspecting elements with the help of appium inspectors andriod locators: xpath,id,className,accessibilityId,andriodUIautomator
Integrated andriod inspector
{ "app": "C:\\Users\\Prashant\\automation\\appium\\src\\test\\java\\resources\\ApiDemos-debug.apk", "deviceName": "Demo", "platformName": "Andriod", "automationName": "UiAutomator2" } driver.findElement(AppiumBy.accessibilityId("Preference")).click();
Separating configuration logic with test case logic making use of @BeforeMethod @AfterMethod @Test(dependsOnMethods = "configureAppium")
Added Long press Added scroll Added swipe gesture
ref:https://github.com/appium/appium-uiautomator2-driver/blob/master/docs/android-mobile-gestures.md
Hybrid app handle context for andriod ui and web ref:https://appium.readthedocs.io/en/latest/en/writing-running-appium/web/hybrid/