title: how to handle Auto suggestion in selenium
body: <pre><code>//for source
   WebElement from= driver.findElement(By.id("autocomplete_source"));
        from.clear();
        from.sendKeys(FromCity);
        Thread.sleep(3000);
        Actions builder=new Actions(driver);
        builder.moveToElement( from.findElement(By.xpath("//*[@class='acResults']/ul/li[1]/span"))).click().build().perform();
  
  //for destination
  
   WebElement to=driver.findElement(By.id("autocomplete_dest"));
        to.clear();
        driver.findElement(By.id("autocomplete_dest")).sendKeys(ToCity);
  builder.sendKeys(Keys.ARROW_DOWN).click().build().perform();
        WebDriverWait wait=new WebDriverWait(driver, 90);
  wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*        [@class='acResults']/ul/li/span")));
       to=driver.findElement(By.cssSelector(".acResults&gt;ul&gt;li&gt;span"));
        Thread.sleep(2000);
            to.click();
  </code></pre>
  
  <p>/* there are two text box source and destination,source is getting handled but destination  is not working. 
      when i am passing Chennai in destination list is showing arrow down is working but it is not selecting and giving error locator is not visible */</p>