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
![image](https://private-user-images.githubusercontent.com/52065013/291066458-38ad231f-b6ff-4d1c-b1b1-906cca703562.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MDYxNzUsIm5iZiI6MTcyMTkwNTg3NSwicGF0aCI6Ii81MjA2NTAxMy8yOTEwNjY0NTgtMzhhZDIzMWYtYjZmZi00ZDFjLWIxYjEtOTA2Y2NhNzAzNTYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDExMTExNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk0MTUwY2FjODYxN2RiMTVlZGM3Nzk0M2MzZjZhNjhjYjA1ZjlhYzUxMWQ5YjMyMWU1ZGY2MTViOGFiNzYyNmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.miSlzrlCWjRGqvkbLWvpXuW775VwzdyYk5rwroTXuBY)
{ "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/