Serguei Cambour wrote in post #1074435:
> Just a piecec pf code to create a screen shot:
>
> private void takeScreenShot(RuntimeException e, String fileName) {
>
> File screenShot = ((TakesScreenshot)
> driver).getScreenshotAs(OutputType.FILE);
>
> try {
>
> FileUtils.copyFile(scree
You can generate HTML reports with surefire, just addd the folowing to your
POM file:
org.apache.maven.plugins
maven-site-plugin
3.1
Just a piecec pf code to create a screen shot:
private void takeScreenShot(RuntimeException e, String fileName) {
File screenShot = ((TakesScreenshot)
driver).getScreenshotAs(OutputType.FILE);
try {
FileUtils.copyFile(screenShot, new File(fileName + ".png"));
} catch (IOEx