title: Selenium not clicking element, when in a loop
body: <p>The code is working itself, but when thrown to loop not working anymore.</p>
  
  <pre><code>driver.get("https://www.esky.pl/okazje/16578/WMI-EDI-FR")
  i = 1
  departure_date_clickable = False
  while departure_date_clickable == False:
      try:
          time.sleep(5)
          xpath ="/html/body/div[4]/div[3]/div/div[1]/div[1]/div[2]/div/div[4]/div/div[{}]".format(i)
          find_ele = driver.find_element_by_xpath(xpath)
          find_ele.click()
          print("Departure:Found clickable date on " + str(i))
          departure_date_clickable = True
      except WebDriverException:
          print("Departure date not clickable, checking next day")
          i += 1
          continue
  </code></pre>
  
  <p>I expect to click first element able to be clicked from the calendar. But for some reason it's problem for selenium when in loop.</p>
  
  <p>Code that's working:</p>
  
  <pre><code>xpath = "/html/body/div[4]/div[3]/div/div[1]/div[1]/div[2]/div/div[4]/div/div[{}]".format("4")
  find_ele = driver.find_element_by_xpath(xpath)
  time.sleep(2)
  find_ele.click()
  </code></pre>