Skip to content

PrashantSinghT99/appium-andriod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

{ "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/