title: selenium python click get Data button
body: <p>I am trying to click the GetData button and get the output but this does not work for me. Not sure how can i do this.</p>
  <p>Code changes below:-</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.chrome.options import Options
  import time
  
  chromeOptions=Options()
  chromeOptions.add_argument(&quot;--ignore-certificate-errors&quot;)
  chromeOptions.add_argument(&quot;--incognito&quot;)
  chromeOptions.add_argument(&quot;--kiosk&quot;)
  chromeOptions.add_argument(&quot;--window-size=1366,768&quot;)
  
  driver =webdriver.Chrome(executable_path=r&quot;C:/Users/lenovo/Downloads/chromedriver_win32/chromedriver.exe&quot;,options=chromeOptions)
  driver.get(&quot;https://www1.nseindia.com/products/content/equities/equities/eq_security.htm&quot;)
  period_ele=driver.find_element_by_name(&quot;dateRange&quot;)
  time.sleep(3)
  period_ele.send_keys(Keys.DOWN)
  period_ele.send_keys(Keys.DOWN)
  period_ele.send_keys(Keys.DOWN)
  
  period_ele=driver.find_element_by_name(&quot;symbol&quot;)
  time.sleep(3)
  period_ele.send_keys(&quot;INFY&quot;)
  driver.find_element_by_css_selector('p.getdata-button&gt;onclick').click()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/BwUgf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BwUgf.png" alt="Want to click on the button " /></a></p>