title: How to check if the user has clicked a button in Selenium?
body: <p>I am scraping a website which has a form with a captcha. The user would select the options through the select box, enter the Captcha manually and click on Go button ( Please refer the screenshot).</p>
  
  <p>Now, once the user has clicked Submit button, I would like to know through Selenium Webdriver.</p>
  
  <p>Here is part of the code in Python : </p>
  
  <pre><code>url= 'http://services.ecourts.gov.in/ecourtindia/cases/s_order.php?state=D&amp;state_cd=26&amp;dist_cd=9'
  
  driver=webdriver.Chrome()
  driver = webdriver.Chrome()
  driver.get(url)
  
  try:
      time.sleep(10)
      element = WebDriverWait(driver, 20).until(EC.presence_of_element_located((By.NAME, "submit1")))
  except Exception as e:
      print str(e)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/paz4u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/paz4u.png" alt="enter image description here"></a></p>