Fix screenshot function in forwarder.dart.
diff --git a/lib/support/forwarder.dart b/lib/support/forwarder.dart
index c41d84f..324fd9c 100644
--- a/lib/support/forwarder.dart
+++ b/lib/support/forwarder.dart
@@ -134,7 +134,7 @@
// take a screenshot and save to file system
var file =
new File(path.join(outputDir.path, params['file'])).openWrite();
- await driver.captureScreenshot().pipe(file as StreamConsumer<int>);
+ await driver.captureScreenshot().map((b) => [b]).pipe(file);
return null;
}
break;