摘要:
1. In JavaWebDriver driver = new FirefoxDriver();driver.get("http://www.google.com/");File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); // Now you can do whatever you need to do with it, for example cop somewhere FileUtils.copyFile(scrFile, new File("c:\\tmp\\ 阅读全文
posted @ 2012-02-11 17:36
shadowlily
阅读(276)
评论(0)
推荐(0)
浙公网安备 33010602011771号