Hi,
I am using Selenium Webdriver 2.25 and InternetExplorerDriverServer 2.25 with C#.NET.
I am trying to capture screenshots in Internet Explorer and everything runs fine when I execute the tests manually.
When I run the test as a Windows Scheduled task/job in a Virtual Machine (Windows 2008 Server),
I am seeing a black image for screenshots everytime.
Here is my code:
string AbsoluteImagePath = "C:\\Images\1.png";
Screenshot imgScreenshot = ((ITakesScreenshot)driver).GetScreenshot();
imgScreenshot.SaveAsFile(AbsoluteImagePath, new System.Drawing.Imaging.ImageFormat(new Guid()));
Can you please help me on this?