title: WebDriverWait on finding element by CSS Selector
body: <p>I want to retrieve the price of the flight of this webpage using Python 3: <a href="https://www.google.es/flights?lite=0#flt=/m/0h3tv./m/04jpl.2018-12-17;c:EUR;e:1;a:FR;sd:1;t:f;tt:o" rel="nofollow noreferrer">https://www.google.es/flights?lite=0#flt=/m/0h3tv./m/04jpl.2018-12-17;c:EUR;e:1;a:FR;sd:1;t:f;tt:o</a></p>
  
  <p>At first I got an error which after many hours I realized was due to the fact that I wasn't giving the webdriver enough time to load all elements. So to ensure that it had enough time I added a time.sleep like so:</p>
  
  <pre><code>time.sleep(1)
  </code></pre>
  
  <p>This made it work! However, I've read and was advised to not use this solution and to use WebDriverWait instead. So after many hours and several tutorials im stuck trying to pinpoint the exact CSS class the WebDriverWait should wait for. </p>
  
  <p>The closest I think I've got is:</p>
  
  <pre><code>WebDriverWait(d, 1).until(EC.presence_of_element_located((By.CSS_SELECTOR, ".flt-subhead1.gws-flights-results__price.gws-flights-results__cheapest-price")))
  </code></pre>
  
  <p>Any ideas on what I'm missing on?</p>