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"));
Newer Posts
Home
Subscribe to:
Posts (Atom)