public static String screenShot(WebDriver augmentedDriver, String folderName, String imageName) {
		Robot rb = null;
		try {
			rb = new Robot();
		} catch (AWTException e) {
			e.printStackTrace();
		}
		rb.mouseMove(0, 0);// move mouse to top left corner, for eliminating some effects of hover in pages

		String dirName = null;
		if (Settings.screenShotType == 1) {
			dirName = Settings.sampleImagePath + folderName;
		} else if (Settings.screenShotType == 2) {
			dirName = Settings.contrastImagePath + folderName;
		} else {
			System.err.println("Wrong type！Please check type.properties！");
		}
		if (Settings.browserCoreType == 1 || Settings.browserCoreType == 3) {
			augmentedDriver.manage().window().setPosition(new Point(0, 0));
			augmentedDriver.manage().window().setSize(new Dimension(9999, 9999));
		} else if (Settings.browserCoreType == 2) {
			augmentedDriver = new Augmenter().augment(augmentedDriver);
		} else {
			System.err.println("Wrong type！Please check imagecheck.properties！");
		}		
		try {
			File sourceFile = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.FILE);
			FileUtils.copyFile(sourceFile, new File(dirName + File.separator + imageName + ".png"));
		} catch (IOException e) {
			e.printStackTrace();
		}
		return dirName + File.separator + imageName + ".png";
	}