Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public void Screenshot_Save()
        {
            FlutterDriver.Screenshot(OutputPath);

            System.Drawing.Image.FromFile(OutputPath);
        }