Appium Junior interview questions and answers

75 questions for a Appium (Junior) interview - with correct answers, explanations and links to the docs.

  1. 1.What is Appium?
  2. 2.What app types can Appium automate on mobile?
  3. 3.What is an Appium driver in Appium 2?
  4. 4.Which driver is the usual choice for Android native apps?
  5. 5.Which driver automates iOS apps?
  6. 6.How do you install a driver in Appium 2?
  7. 7.What are capabilities in an Appium session?
  8. 8.Which capability tells Appium which driver to use?
  9. 9.What does appium:app point to?
  10. 10.What are appPackage and appActivity on Android?
  11. 11.What is bundleId on iOS?
  12. 12.What does Appium Inspector help with?
  13. 13.Which locator is usually the most stable in mobile tests?
  14. 14.What does accessibility id map to on Android?
  15. 15.What does accessibility id map to on iOS?
  16. 16.Why is XPath often slow in Appium tests?
  17. 17.Which Android-specific locator strategy uses UI Automator's selectors?
  18. 18.Which iOS-specific locator strategies are faster than XPath?
  19. 19.What is a real device versus an emulator or simulator?
  20. 20.Why must tests run on real devices too, not only emulators?
  21. 21.What is adb?
  22. 22.How do you see which Android devices are connected?
  23. 23.What does the appium:udid capability select?
  24. 24.What is a native context versus a WebView context?
  25. 25.How do you switch to a WebView in a hybrid app?
  26. 26.How do you tap an element in Appium?
  27. 27.How do you type into a text field?
  28. 28.Why may a test need to hide the keyboard?
  29. 29.What are W3C actions used for in Appium?
  30. 30.Which gesture API from Appium 1 is deprecated in Appium 2?
  31. 31.How do you scroll to an element on Android with UiAutomator2?
  32. 32.What does driver.terminateApp(id) do?
  33. 33.What does noReset: true change?
  34. 34.What does fullReset: true do?
  35. 35.Why are explicit waits important in mobile tests?
  36. 36.What does autoGrantPermissions do on Android?
  37. 37.How should a test handle an iOS system alert like 'Allow notifications'?
  38. 38.What is a deep link?
  39. 39.How do you take a screenshot in Appium?
  40. 40.What is logcat?
  41. 41.What does platformName specify?
  42. 42.Which languages can you write Appium tests in?
  43. 43.What is the Appium Java client?
  44. 44.Which class do you create for an Android session in the Java client?
  45. 45.What is the default port of the Appium server?
  46. 46.Which runtime does the Appium 2 server need?
  47. 47.What does appium-doctor (or driver doctor) check?
  48. 48.What is the main difference between UiAutomator2 and Espresso drivers?
  49. 49.What does WebDriverAgent do in iOS automation?
  50. 50.Why do real iOS devices need code signing for tests?
  51. 51.What is the Page Object pattern in mobile tests?
  52. 52.How can one page object support Android and iOS?
  53. 53.What does driver.getPageSource() return in Appium?
  54. 54.Why should mobile tests set a known device orientation?
  55. 55.What does driver.runAppInBackground(Duration) test?
  56. 56.Why are interruptions like calls and notifications worth testing?
  57. 57.What is a mobile web test with Appium?
  58. 58.What problem does a mobile device cloud solve?
  59. 59.Why should mobile tests avoid tapping by screen coordinates?
  60. 60.What does isDisplayed() check in a mobile test?
  61. 61.Why may an element in a long list not be found?
  62. 62.What does resource-id look like on Android?
  63. 63.How do you check the app's text on a label?
  64. 64.What is a flaky mobile test?
  65. 65.Why disable animations on Android test devices?
  66. 66.What does appium:newCommandTimeout control?
  67. 67.What should a test do in teardown?
  68. 68.How do you get the app's current Android activity?
  69. 69.What does an Appium plugin do?
  70. 70.Why test on several OS versions?
  71. 71.What is a hybrid app?
  72. 72.What does getContextHandles() return?
  73. 73.Why is test data important in mobile tests too?
  74. 74.What is the benefit of starting tests on a deep-linked screen?
  75. 75.Why should UI tests on mobile be fewer than unit tests?