public static void safeClick(Selenium s, String path, UserSelection type) {

		if (s.isElementPresent(path)) {
			s.click(path);

			if (type.equals(UserSelection.ENDORSING)) {
				writer.write("Successfully ENDORSING for : "
						+ safeGetText(s, "//*[@id='name']/h1/span/span[1]"));
			} else {
				writer.write("Successfuly Click " + safeGetText(s, path));
				// writer.write("Successfuly Click Path: "+path);
			}
		} else {

			if (type.equals(UserSelection.ENDORSING)) {
				writer.write("Nothing to ENDORSING for : "
						+ safeGetText(s, "//*[@id='name']/h1/span/span[1]"));
			} else {
				s.refresh();
				s.waitForPageToLoad(loadingTimeOut);
				if (s.isElementPresent(path)) {
					s.click(path);
				}else{
					writer.write("Error! Path:" + path + " is not found");
				}
				
			}

		}
	}