public static void TakesScreenshot(WebDriver driver, String FailedAt){
		try{
	    // driver is your WebDriver
	    File screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);
	
	    // screenshot is the file we have acquired
	    // fileName is the name of the image file
	
	        FileUtils.copyFile(screenshot, new File(FailedAt+".jpg"));
	    } catch (IOException e) {
	        e.printStackTrace();
	    }
	}