Selenium - Screenshots

 

File srcFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);

            File destFile= new File("/com.SeleniumPractise/Snaps");

            FileUtils.copyFile(srcFile, destFile);

Comments

Popular posts from this blog

QA Insights - Test management using Microsoft Test Manager [Novice to Advanced]

WebServices & Microservices

QA's approach to Java - Understanding Non static context