Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.selgp.moladek.core.loggers;
 
 
 
 import java.io.File;

Base class for providing screenshooting functionality.

Author(s):
guillem.hernandez
public abstract class AbstractScreenshooter {
    private final String label;
    public AbstractScreenshooter(String label) {
        this. = label;
        new File(.).mkdirs();
    }
    public abstract String getScreenshot();
    protected String getAutomaticScreenshotPath() {
        String fileName =  + "-" + DataGeneratorUtil.getTimestamp().replace(".""-").replace("_""-") + ".png";
        return . + . + fileName;
    }
New to GrepCode? Check out our FAQ X