Flutter integration_test – Making screenshot

Issue

Hey are there any possibilities to make a screenshot when using integration_test lib (https://pub.dev/packages/integration_test) for UI tests?

In flutter_driver it was bulid in method to take it. Here i coldn’t find any.

Solution

From Flutter version 2.5.0 you can take a screenshot by very simple way.
Here is manual about how to do it: https://dev.to/mjablecnik/take-screenshot-during-flutter-integration-tests-435k

Answered By – mjablecnik

Answer Checked By – Robin (FlutterFixes Admin)

Leave a Reply

Your email address will not be published.