Quality is delighting customers
Hi,Is selenium Capture screenshot command in Selenium RC not works for Chrome browser..anyone can confirm pls...
Tags:
Permalink Reply by Navjot kaur on October 30, 2012 at 11:47am Hi,
You can use following code:
WebDriver augmentedDriver = new Augmenter().augment(driver);
File screenshot = ((TakesScreenshot)augmentedDriver).getScreenshotAs(OutputType.FILE);
//You can give the location where you want to keep the screenshot
FileUtils.copyFile(screenshot, new File("C:\\Documents and Settings\\Master\\Desktop\\screenshot1.png"));
Director - Head of Global Test Center at Barclays
© 2013 Created by Quality Testing.