Search code examples
flutterintegration-testing

Flutter integration_test - Making screenshot


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 couldn'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