private String getDriverProfile() {
		/**
		 * The temporary profile Selenium/Firefox creates should be 
		 * located at java.io.tmpdir. On Windows it is %TEMP%
		 * Search is based on the presence of the file which name is the same as the name of the profile.
		 * This file was manually placed in profile directory.
		 */
		File sysTemp = new File(System.getProperty("java.io.tmpdir"));		
		File pd = null;
		boolean bFound = false;
		for (File t : sysTemp.listFiles()) {
			if (!t.isDirectory()) { continue; }
			
			if (t.toString().contains("webdriver-profile")) {
				for(File f : t.listFiles()) {
					if (f.isDirectory()) { continue; }
					
					if(System.currentTimeMillis() < t.lastModified() + 10000 && 
							f.getName().equalsIgnoreCase(namedProfile)) {
						pd = t;
						bFound = true;
						break;
					}
				}
				
				if(bFound) {break;}
			}
			
		}
			
		return pd.toString();
	}