Selenium
Web Browser Automation
Thursday, 24 May 2012
Taking screenshots in selenium webdriver
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);//take the screenshots
FileUtils.copyFile(scrFile, new File("absolutepath\\filename.format"));
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment