Skip to content

Instantly share code, notes, and snippets.

@FriendlyTester
Created October 14, 2013 21:01
Show Gist options
  • Save FriendlyTester/6982149 to your computer and use it in GitHub Desktop.
Save FriendlyTester/6982149 to your computer and use it in GitHub Desktop.
Screenshot ss = ((ITakesScreenshot)webDriver).GetScreenshot();
string screenshot = ss.AsBase64EncodedString;
byte[] screenshotAsByteArray = ss.AsByteArray;
ss.SaveAsFile(@"C:\Temp", System.Drawing.Imaging.ImageFormat.Jpeg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment