public static String completexpath_class(String tableid, String search,
			String linkname, int columnnumber,String controltype) throws Exception {
		ArrayList object = new ArrayList();

		int rows = getNoOfRowsInGrid_class(tableid);
		int stringincrementer = 0;
		for (int i = 1; i < rows; i++) {

			String temp = configuration.selenium.getText("//table[@class='"
					+ tableid + "']/tbody/tr[" + i + "]/td[2]");

			if (temp.contains(search)) {

				object.add("xpath=//table[@class='"+tableid+"']/tbody/tr["+i+"]");

			}

		}

		Iterator i = object.iterator();
		String temp=null;
		while (i.hasNext()) {
			 if(controltype.equals(""))
				 temp = i.next() + "/td["+columnnumber+"]";
			 else
				 temp = i.next() + "/td["+columnnumber+"]/"+controltype;
			
			if (!temp.contains("null")) {
				boolean present = configuration.selenium.isElementPresent(temp);

				if (present) {
					String review = configuration.selenium.getText(temp);
					System.out.println("narayana123:"+temp);
					if (review.contains(linkname))
						{
						System.out.println("FInal"
								+ configuration.selenium.getText(temp) + ":"
								+ temp);
					return temp;
						}
				}
			}
		}
		return null;

	}