Monday, 25 January 2016

How to get screen shot in WebDriver?

File screenShot=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
    FileUtils.copyFile(screenShot, newFile("D:\google_page.png"));

No comments:

Post a Comment