title: Element identification problem in Selenium Python
body: <p>Here is my current code:</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.by import By
  import time
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  
  driver = webdriver.Chrome(executable_path= &quot;C:\Drivers\chromedriver&quot;)
  driver.get(&quot;https://www.expedia.com/&quot;)
  driver.maximize_window()
  driver.implicitly_wait(5)
  
  driver.find_element(By.XPATH, &quot;//*[@id='uitk-tabs-button-container']/li[2]/a/span&quot;).click()
  time.sleep(15)
  driver.find_element(By.ID, &quot;location-field-leg1-origin-dialog-trigger&quot;).send_keys(&quot;BLR&quot;)
  driver.find_element(By.ID, &quot;location-field-leg1-destination-dialog-trigger&quot;).send_keys(&quot;BOM&quot;)
  driver.find_element(By.ID, &quot;departure&quot;).send_keys(&quot;Fri Nov 06 2020&quot;)
  driver.find_element(By.XPATH, &quot;//*[@id='root']/div/div[2]/div/div/div[2]/p/a&quot;).click()
  </code></pre>
  <p>I am trying to identify the elements</p>
  <blockquote>
  <p>Flights(link), origin(inputbox), destination(inputbox), date(inputbox) and search(link)</p>
  </blockquote>
  <p>but no luck... always getting</p>
  <blockquote>
  <p>NoSuchElementException: Message: no such
  element: Unable to locate element:...</p>
  </blockquote>
  <p>I am a beginner to selenium, please help.</p>