WebDriver driver=new FirefoxDriver();
driver.get("https://www.google.co.in/");
File
scrfile=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(scrfile,new
File("E://test.png"));
driver.close();
This blog is for Automation Test Engineers
0 comments:
Post a Comment