title: Selenium - Problems while selecting date in webpage
body: <p>I am trying to select some data from webpage: <a href="https://indiawris.gov.in/wris/#/groundWater" rel="nofollow noreferrer">https://indiawris.gov.in/wris/#/groundWater</a>
  I am facing problem while picking the start and end dates in the webpage. I have made an attempt using a code similar to this earlier, but here it did not work.</p>
  <pre><code>#code snippet tried for date picking earlier which is not working now
      startdate_ele = driver.find_element_by_id('start_date_1')
      startdate_ele.clear()
      startdate = '2016/11/01' ## set the start date
      end_date_ele = driver.find_element_by_id('end_date_1')
      end_date_ele.clear()
      endDate ='2017/07/31'   ## set the end date for files to download
      startdate_ele.send_keys(startdate)
      time.sleep(5)
      end_date_ele.send_keys(endDate)
  </code></pre>
  <p>Following is the current code.</p>
  <pre><code>#functional code that does selection prior to the date picking
  
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium import webdriver
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions as EC
  from selenium import webdriver
  import time
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.action_chains import ActionChains
  from selenium.webdriver.support.ui import Select
  
  path2 = r&quot;F:\\chromedriver_win32\\chromedriver.exe&quot;
  driver = webdriver.Chrome(executable_path=path2)
  driver.maximize_window()
  
  wait = WebDriverWait(driver, 30)
  
  driver.get(&quot;https://indiawris.gov.in/wris/#/groundWater&quot;)
  
  # try:
  wait.until(EC.frame_to_be_available_and_switch_to_it((By.XPATH, &quot;//iframe[@class='ng-star-inserted']&quot;)))
  print('Switched successfully to iframe')
  ele = wait.until(EC.element_to_be_clickable((By.XPATH, &quot;//div[@class='views']//label[contains(.,'Basin')]//input&quot;)))
  driver.execute_script(&quot;arguments[0].click();&quot;, ele)
  print('Clicked on basin button')
  sourceDrop = driver.find_element_by_xpath('//*[@id=&quot;applications&quot;]/div[2]/div/groundwater-sidebar/div/div[2]')
  sourceItems = sourceDrop.find_elements_by_class_name('ng-star-inserted')
  print(&quot;length&quot;,len(sourceItems))
  actionChains = ActionChains(driver)
  select = Select(driver.find_element_by_xpath('//*[@id=&quot;applications&quot;]/div[2]/div/groundwater-sidebar/div/div[2]/select'))
  select.select_by_visible_text('CGWB')
  
  select = Select(driver.find_element_by_xpath('//*[@id=&quot;applications&quot;]/div[2]/div/groundwater-sidebar/div/div[3]/select'))
  select.select_by_visible_text('yyyyMMdd')
  
  startdate_ele = driver.find_element_by_xpath('//*[@id=&quot;applications&quot;]/div[2]/div/groundwater-sidebar/div/div[4]/datepicker/div/input')
  startdate_ele.clear()   
  startdate = '03-January-2021' ## set the start date
  end_date_ele = driver.find_element_by_id('end_date_1')
  end_date_ele.clear()
  endDate ='2017/07/31'   ## set the end date for files to download
  startdate_ele.send_keys(startdate)
  time.sleep(5)
  end_date_ele.send_keys(endDate)
  </code></pre>
  <p>can some one help me in picking the dates from this portal to do the selection.</p>