Hi All,
I'am setup automation testing on Mobile using Appium and I got the issue regarding to find element on Android apps.
I couldn't find element using xpath, id, name but it's work with classname. Here is my application
My's code:
es = driver.findElements(By.className("android.widget.Button"));
System.out.println("size " + es.size());// return 56
es2 = driver.findElements(By.id("com.android2.calculator3:id/digit_7"));//return 0
System.out.println("size " + es2.size());// return 0
es2 = driver.findElements(By.xpath("//android.widget.Button[@bounds='[32,754][179,863]']"));
System.out.println("size " + es2.size());// return 0
I was trying with many Appium version (latest version, older version) and many Android version
Please help me to support above issue and let me know the root cause or your solution.
Many thanks,
Xuyen Tran