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