FlutterDriver for Flutter Apps

FlutterDriver => It Provides API to test Flutter applications that run on real devices and emulators. The application runs in a separate process from the test itself.

Its simply called as the Flutter’s version of Selenium Webdriver. If you know already Selenium getting started with FlutterDriver is easy.

If you want to know more about Flutter please check the official docs here. And More about Integration testing documentation on Driver Setup here.

You will need two test files to start with Flutter, let’s look at it now!
You need to add flutter_driver dependency.

Secondly, its the test script itself

Here is the sample script to give you a feel of how the test code (the API) calls looks like

To execute the tests…

I’m attempting to write an Appium driver for Flutter. The main goal for that attempt is to avoid people write a new framework/ learn a new language(DART) to write tests to test Flutter Apps.
Stay tuned…..
update: Someone has already jumped on it before I could get onto it!

Leave a Comment