Following this SO post I was able to take screenshots but they turned out to be just white. I tried couple of workarounds with no avail
- Tried using one monitor instead of usual two
- Used different image format
- Included System.Drawing reference even though I didn't an compiler error.
Code
Screenshot ss=((ITakesScreenshot)driver).GetScreenshot();
ss.SaveAsFile("test.png", System.Drawing.Imaging.ImageFormat.Png);
What should be my next steps. I am using C# 4.0