private List<SearchResult> GetResultList(WebDriver driver, String key , int numIter) {
		List<SearchResult> list = new ArrayList<SearchResult>();
		if(numIter<1) return list;
		
		wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("r")));
		List<WebElement> elements = driver.findElements(By.className("r"));
	//	System.out.println("size:"+elements.size());

		if(elements!=null&&elements.size()!=0)
		{
			SearchResult sr = null;
			for(WebElement e :elements){
				sr = new SearchResult();
				String link = null;
				try {
					link = e.findElement(By.tagName("a")).getAttribute("href");
			//		System.out.println(key+"--"+link);

					if(link==null)continue;
					int start = link.indexOf("q=http")+2;
					if(start==-1) continue;
					int end = link.indexOf("&sa");
					if(end==-1) continue;
					link = link.substring(start,end);
					
					sr.setLink(link);
					sr.setText(e.getText());
					list.add(sr);

				} catch (Exception e1) {
					System.out.println("-----Cannot find element with tag name: a,numIter:"+numIter);
					 numIter--;
					list = GetResultList(driver,key , numIter);
					break;
				}
			}
		}
		return list;
	}