public static void addScreenCaptureFromPath(String imagePath, String title) throws IOException {
        getCurrentStep().addScreenCaptureFromPath(imagePath, title);
    }
public static void addScreenCaptureFromPath ( String imagePath , String title ) throws IOException { getCurrentStep ( ) . addScreenCaptureFromPath ( imagePath , title ) ; }
Adds the screenshot from the given path with the given title to the current step

@param imagePath The image path
@param title     The title for the image
@throws IOException Exception if imagePath is erroneous