title: How to fill in an autocomplete inputbox using Selenium? (Why an automated input does not load autocomplete options BUT a manual input does?)
body: <p>The following code tests an autocomlete box of a webpage:</p>
  
  <pre><code>public class Test {
  
      public static void main(String[] args) throws InterruptedException {
          System.setProperty("webdriver.chrome.driver","chromedriver\\chromedriver.exe");     
          WebDriver driver = new ChromeDriver();
          driver.get("http://www..............com"); 
          driver.switchTo().frame("mainFrame");
  
          WebDriverWait waitst = new WebDriverWait(driver, 120);
          waitst.until(ExpectedConditions.visibilityOfElementLocated(By.name("sourceTitle")));
  
          WebElement sourceTitle = driver.findElement(By.name("sourceTitle"));
          WebElement small = driver.findElement(By.cssSelector("li#nameExampleSection label + small"));
          sourceTitle.sendKeys("Times"); 
          Thread.sleep(5000);
          Actions actions = new Actions(driver);
          actions.click(small).perform();
  
      }
  
  }
  </code></pre>
  
  <p>Why doesn't the autosuggest box load? <strong>IMPORTANT:</strong> try to type in <em>"..........."</em> manually ... the autocomplete box will load perfectly fine!!! So, why does not <code>cssSelector</code> work, why doesn't it load the autocomplete box?</p>
  
  <p><strong>How come an automated input does not allow for autocomplete options BUT a manual input does???</strong></p>
  
  <p>PS: I also tried <code>fireEvent</code>, <code>sendKeys</code> but nothing works.</p>