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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyOTI2MDAsIm5iZiI6MTcyMDI5MjMwMCwicGF0aCI6Ii81MjA2NTAxMy8yOTEwNjY0NTgtMzhhZDIzMWYtYjZmZi00ZDFjLWIxYjEtOTA2Y2NhNzAzNTYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA2VDE4NTgyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3ZTVhYWQ1YjllOWRiZmJlMmI5MzQzNGQ1YTA5Mjc1NDYyYzgxMmRiNjc3Y2NhY2U1YzI2YjAyMTA3ZDJjN2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.U4gsQcHSIpeJ3gbu23ZsY4Eoqa8lw_BN3VvnuZsErcY)
{ "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/