Quality Testing

Quality is delighting customers

Is selenium Capture screenshot command in Selenium RC not works for Chrome browser?

Hi,Is selenium Capture screenshot command in Selenium RC  not works for Chrome browser..anyone can confirm pls...

Views: 81

Reply to This

Replies to This Discussion

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"));

RSS

TTWT Magazine

Welcome to Quality Testing!

Keith Klain

 Director - Head of Global Test Center at Barclays

Advertisement

Submit A Job

Submit A Tool

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2013   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service