public void TakeScreenshot(String url, String image) { var driver = new InternetExplorerDriver(); driver.Navigate().GoToUrl(url); var ss = driver.GetScreenshot(); ss.SaveAsFile(image, System.Drawing.Imaging.ImageFormat.Png); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)