logo logo

Flutter App Automation Testing for iOS using Appium & TestProject

Flutter App Automation Testing for iOS using Appium & TestProject

Flutter app automation testing for iOS devices can be a challenging task using any automation framework available, including Appium. The phenomenon you will observe while automating tests on Flutter apps running on iOS devices (both physical & simulator devices) is that the application’s elements are not rendered to the DOM tree, which makes them not interactable… 😧

TestProject’s AI-powered Test Recorder utilizes Appium’s driver to record codeless Appium tests on both iOS and Android devices. The ability to create and run mobile tests now becomes as easy as a simple plug & play of any mobile device of your choice directly to your machine, using TestProject’s free test automation platform.Β 

In this article, we will review two options to set up and enable Flutter app automation testing, running on iOS devices using TestProject and Appium πŸš€

Enable Flutter App Automation Using Simulators & Physical Devices

iOS XCode Simulators

The first option is to create your test automation on iOS XCode Simulators. TestProject supports recording tests on iOS simulators out-of-the-box! Once your iOS simulator is up and running on your machine, it will automatically be detected by the TestProject Agent, and you will be all set to start recording your codeless test automation on Flutter apps.

πŸ’‘ You can read more on how to get started with iOS Simulators on the official TestProject Docs.

Physical iOS Devices

The second option is utilizing a physical iOS device for recording tests on Flutter apps, running on iOS real devices. In order to do so, you’ll need to follow these simple steps:

  1. Open the Setting on the iOS device.
  2. Tap on the “Accessibility” option.
  3. Tap on the “Spoken Content” option.
  4. Toggle on the “Speak Selection” and “Speak Screen” actions.

Here is a quick demonstration of the steps above:

1. Tap on the Settings on your iOS device:

iOS Device Settings

2. Tap on the “Accessibility” option:

Accessibility Option

3. Tap on the “Spoken Content” option:

Spoken Content

4. Toggle on the “Speak Selection” and “Speak Screen” actions:

"Speak Selection" and "Speak Screen" actions

The above explanation of enabling Flutter app automation testing for physical iOS devices has been tested on some popular applications developed by the Flutter framework. Here are two examples of Flutter apps and how TestProject’s powerful AI recorder helps solves such iOS challenges, before changing the iOS settings vs. after changing the iOS setting.

iOS Setting Changes


iOS Setting Changes_Example 2

That’s it! You are all set to start your Flutter app automation testing journey for iOS devices, using TestProject – completely for free.

Happy Fluttering 😎

About the author

Meidan Nasi

Solutions Engineer at TestProject. Code, sports and music runs in my blood.

Leave a Reply