All subjects

Mobile · Interview subject

Appium Interview Questions

Architecture, drivers, locator strategy and context switching.

53 questions

Quick interview answer

Keep a single page object interface with platform-specific locator strategies resolved at runtime (@AndroidFindBy / @iOSXCUITFindBy or a locator map).

Detailed explanation

Use accessibility ids wherever possible — they work on both platforms and are the most stable. Where platforms diverge, annotation-based locators keep one page class serving both drivers.

java
1@AndroidFindBy(accessibility = "checkout_button")
2@iOSXCUITFindBy(iOSNsPredicate = "name == 'checkout_button'")
3private WebElement checkout;

Real-world example

One page-object suite driving both platforms in a shared mobile framework.

Interview tip

Push accessibility ids as a shift-left ask to developers.

Next subjectPerformance