Skip to content

Device Preparation

Automatic device preference update

Appium XCUITest prepares preferences of the device under test automatically. Some of them are also configurable via Appium capabilities and the Settings API.

Keyboards configuration

Appium configures keyboard preferences by default to make test runs more stable. You can change some of them via the Settings API.

  • Turn Auto-Correction in Keyboards off
  • Turn Predictive in Keyboards off
  • Mark keyboard tutorial as complete
  • (Only for Simulator) Toggle software keyboard on

Manual setup for fine tuning

Automatic configuration availability is limited on iOS, especially for a real device. You may need to manually change the device configuration.

Enable Web testing availability

Please turn on Web Inspector on iOS device via Settings -> Safari -> Advanced

Avoid possible wrong coordinate

Please make sure the zoom preference in accessibility is turned off via Settings -> Accessibility -> Zoom. It could cause element coordinates miscalculation.

Expose more elements if needed

In some cases, enabling of the below preferences helps to make some view elements accessible. Appium does not modify these settings automatically, since they could affect the way your application under test performs. Please change them manually if needed.

  • Turn Spoken Content in Settings -> Accessibility on
  • Turn Speak Selection in Settings -> Accessibility on

Note that the available accessibility content depends on the OS version.