Automators' Cafe
Wednesday 4 September 2013
Take screenshot in WebDriver
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(scrFile, new File("C:\\test\\sample.png"));
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)