Appium Middle interview questions and answers

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

  1. 1.What changed in the architecture from Appium 1 to Appium 2?
  2. 2.Why do Appium 2 capabilities need the appium: prefix?
  3. 3.What is the default base path of the Appium 2 server?
  4. 4.What are mobile: execute methods?
  5. 5.How do you open a deep link on Android with UiAutomator2?
  6. 6.How do you perform a swipe with W3C actions?
  7. 7.What is a long press in W3C actions?
  8. 8.How can you set app permissions before a test on Android?
  9. 9.Why may a WebView context not appear on Android?
  10. 10.What does Appium need to automate a WebView on Android?
  11. 11.How do you get the Android log into a test report?
  12. 12.What's the risk of noReset: true in a suite?
  13. 13.How do you clear app data on Android without reinstalling?
  14. 14.How do you run Appium tests in parallel on several Android devices?
  15. 15.What does wdaLocalPort do for parallel iOS runs?
  16. 16.What is Appium's settings API?
  17. 17.Why may UiAutomator2 hang while the app shows an animation?
  18. 18.How do you speed up XPath on Android?
  19. 19.What does an iOS class chain locator look like?
  20. 20.What does an iOS predicate string locator look like?
  21. 21.What does mobile: scroll or mobile: swipe give over manual W3C swipes?
  22. 22.How do you test push notifications on a real device?
  23. 23.How can a simulator receive a push notification without a server?
  24. 24.Why should mobile tests control network conditions?
  25. 25.How do you test airplane mode on Android?
  26. 26.What should a mobile framework capture on failure?
  27. 27.How do you record a video of the screen during a test?
  28. 28.What is the role of the Appium Inspector's 'search' feature?
  29. 29.Why is contentDescription not always ideal as a test id on Android?
  30. 30.Why use accessibilityIdentifier rather than accessibilityLabel for tests on iOS?
  31. 31.How do you handle a native date picker on iOS?
  32. 32.What does appium:autoWebview do?
  33. 33.What's a common cause of SessionNotCreatedException on Android?
  34. 34.How do you test that the app keeps state after rotation?
  35. 35.Why are emulators preferred for most CI runs?
  36. 36.How can you start an Android emulator headless in CI?
  37. 37.What is Espresso driver's main limitation compared to UiAutomator2?
  38. 38.Why may the Espresso driver need the app's source or a rebuild?
  39. 39.How can Appium test Flutter apps?
  40. 40.What's a typical problem with React Native apps in Appium?
  41. 41.Why might a test pass on one Android vendor and fail on another?
  42. 42.How should tests handle the soft keyboard on Android?
  43. 43.What's the advantage of WebdriverIO's Appium service?
  44. 44.How can you reach a screen behind login quickly in mobile tests?
  45. 45.How do you install an app built in CI on the test device?
  46. 46.How do you check the installed app version on Android?
  47. 47.Why should locators be stored per platform when UIs differ?
  48. 48.What does @AndroidFindBy(accessibility = "login") do in the Java client?
  49. 49.How do you wait for an element to disappear, e.g. a loader?
  50. 50.Why are implicit waits risky in Appium suites?
  51. 51.How can tests reduce flakiness from slow device boots in CI?
  52. 52.What do mobile: shell commands need on the Appium server?
  53. 53.How do you change device location in tests?
  54. 54.How can you test biometric login on a simulator or emulator?
  55. 55.Why keep app builds for testing with test-only features?
  56. 56.How do you check a toast message on Android?
  57. 57.What is appium:systemPort in UiAutomator2?
  58. 58.What does appium:wdaLaunchTimeout help with?
  59. 59.Why prebuild WebDriverAgent in CI?
  60. 60.How do you take a screenshot of just one element?
  61. 61.Why should mobile tests handle onboarding and 'What's new' screens centrally?
  62. 62.What's a good approach to test analytics events from a mobile app?
  63. 63.How do you test that the app handles low memory or process death on Android?
  64. 64.What's a reasonable device matrix for a mobile app?
  65. 65.Why log the Appium server output in CI?
  66. 66.What does getDeviceTime() help with?
  67. 67.How do you check which app is in the foreground on iOS?
  68. 68.What's the use of queryAppState?
  69. 69.Why may tests fail after an OS update on devices?
  70. 70.What's the purpose of tagging mobile tests by platform?
  71. 71.Why prefer IDs from developers over generated XPath from Inspector?
  72. 72.How do you test a 'pull to refresh' gesture?
  73. 73.What does driver.activateApp(id) do?
  74. 74.How do you lock and unlock a device in a test?
  75. 75.Why may getText() return an unexpected value on iOS?