driver.Navigate().GoToUrl("http://www.google.com");
ITakesScreenshot screenshotDriver = driver as ITakesScreenshot;
Screenshot screenshot = screenshotDriver.GetScreenshot();
screenshot.SaveAsFile(@"F:\Selenium_Workshop\test.jpeg", ImageFormat.Jpeg);
ITakesScreenshot screenshotDriver = driver as ITakesScreenshot;
Screenshot screenshot = screenshotDriver.GetScreenshot();
screenshot.SaveAsFile(@"F:\Selenium_Workshop\test.jpeg", ImageFormat.Jpeg);
0 comments