public static void testGoogleSuggest() throws Exception {
			
	        // The Firefox driver supports javascript 
	        WebDriver driver = new FirefoxDriver();
	        
	        // Go to the Google Suggest home page
	        driver.get("http://www.google.com/webhp?complete=1&hl=en");
	        
	        // Enter the query string "Cheese"
	        WebElement query = driver.findElement(By.name("q"));
	        query.sendKeys("Cheese");

	        // Sleep until the div we want is visible or 5 seconds is over
	        long end = System.currentTimeMillis() + 5000;
	        while (System.currentTimeMillis() < end) {
	            WebElement resultsDiv = driver.findElement(By.className("gsq_a"));

	            // If results have been returned, the results are displayed in a drop down.
	            if (resultsDiv.isDisplayed()) {
	              break;
	            }
	        }

	        // And now list the suggestions
	        List<WebElement> allSuggestions = driver.findElements(By.className("gsq_a"));
	        
	        for (WebElement suggestion : allSuggestions) {
	            System.out.println(suggestion.getText());
	        }
	     }