title: Dynamic Drop-down search bar results do not parse into my List for Selenium
body: <p>I'm creating a simple script to visit <em>priceline.com</em> and then searching "<strong>N</strong>" under <strong>Departing Flights</strong> and selecting <strong>New York City (NYC)</strong> from the dropdown list.</p>
  
  <p>My code successfully types into the search bar but is still unable to find the dynamic dropdown with all the relevant results. I am not sure why.</p>
  
  <pre><code>// Clicks on "Departing from?" textbox and clears it before typing 'N'
  driver.findElement(By.id("flight-departure-airport0")).click();
  driver.findElement(By.id("flight-departure-airport0")).clear();
  driver.findElement(By.id("flight-departure-airport0")).sendKeys("N");
  
  // Store all dynamic search results into a list
  List&lt;WebElement&gt; departureDropdown = driver.findElements(By.id("//*['flight-departure-airport0-dropdown']/div/div/div"));
  
  System.out.println("List: "+departureDropdown);
  </code></pre>
  
  <p><strong>Expected:</strong>
  I expected <code>departureDropdown</code> to have a length of 9 with various airports. (Nadi, New York City, Nagasaki, etc) and expect <code>departureDropdown[i]</code> to return one of the city names in plain text.</p>
  
  <p><strong>Actual:</strong>
  My code is stuck at the list initialization. <code>departureDropdown</code> is empty.</p>