@Test
public void AjaxExample() throws Exception
public void AjaxExample() throws Exception
{
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.get("http://seleniumsubbu.blogspot.in/");
driver.findElement(By.name("q")).sendKeys("selenium");
Thread.sleep(3000);
driver.findElement(By.name("q")).sendKeys(Keys.ARROW_DOWN);
driver.findElement(By.name("q")).sendKeys(Keys.ARROW_DOWN);
driver.findElement(By.name("q")).sendKeys(Keys.ARROW_DOWN);
driver.findElement(By.name("q")).sendKeys(Keys.ENTER);
}
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.get("http://seleniumsubbu.blogspot.in/");
driver.findElement(By.name("q")).sendKeys("selenium");
Thread.sleep(3000);
driver.findElement(By.name("q")).sendKeys(Keys.ARROW_DOWN);
driver.findElement(By.name("q")).sendKeys(Keys.ARROW_DOWN);
driver.findElement(By.name("q")).sendKeys(Keys.ARROW_DOWN);
driver.findElement(By.name("q")).sendKeys(Keys.ENTER);
}