Appium Android Interview Questions

Answer : You can locate android app's elements using bellow given different ways.

XPath

ID

Name

className

AccessibilityId

18. : Can you tell me different ways to locate element by XPath?

Answer : You can create XPath in different ways to locate same element. Different XPath examples are given on THIS PAGE.

19. : What is use of package and launcher activity name of android app in appium automation test?

Answer : In appium automation test, We need to provide android app's package and launcher activity name so that appium can understand which application to launch for test when you start running appium test. We can set package and launcher activity name as desired capability.

20. : How to get android app's package and launcher activity name?

Answer : There are many different ways to get android app's package and launcher activity name. I have described two different ways to get android app's package and launcher activity name. Other two ways are given on THIS PAGE too.