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's approach 2 Java - Understanding Static context

Selenium 4 absolute beginners - How to create Batch execution file

Technologies - Log4J - Create Log4j Configuration File - Where ? How ? What ?