Are you using a RemoteWebDriver?
> --
> You received this message because you are subscribed to the Google Groups
> "webdriver" group.
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to
> webdriver+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/webdriver?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
I have used your code and successfully taken screen shots of web pages using C#.IWebDriver driver = new FirefoxDriver();driver.Navigate().GoToUrl("http://www.google.com");Screenshot ss = ((ITakesScreenshot)driver).GetScreenshot();
string screenshot = ss.AsBase64EncodedString;byte[] screenshotAsByteArray = ss.AsByteArray;
actually you have to add:using System.Drawing;using System.Drawing.Imaging;also, you have to write the extension with filename.ss.SaveAsFile("c://test.png", ImageFormat.Png);
Thank You
HARISH KUMAR