public void Screenshot_Raw() { var result = FlutterDriver.Screenshot(); result.Length.Should().BeGreaterThan(0, because: "we are expecting a screenshot to be returned. "); System.IO.File.WriteAllBytes(OutputPath, result); System.Drawing.Image.FromFile(OutputPath); }
public void Screenshot_Save() { FlutterDriver.Screenshot(OutputPath); System.Drawing.Image.FromFile(OutputPath); }