title: unable to click on a div with selenium (ng-click) Python
body: <p>Hello everyone forgive I think I can not really explain my problem, I will try again, if they can not understand me very well is that sometimes my English written fails a lot sorry</p>
  
  <p>What I want to try is to automate the access to a web that I leave and link here
  <a href="https://www.runt.com.co/consultaCiudadana/#/consultaVehiculo" rel="nofollow noreferrer">RUNT</a></p>
  
  <p>The first part I have solved that is to enter the data to the form and resolve the im not to robot in send</p>
  
  <p>I'm going to post all the code in python </p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  
  import pandas as pd
  import threading
  import time
  import csv
  import os
  
  
  # options = webdriver.ChromeOptions()
  # options.add_argument(
  #    r'user-data-dir=C:\Users\RADEON\AppData\Local\Google\Chrome\user Data\default')
  #
  # options.add_extension(r"C:\Users\RADEON\Documents\Web Driver\Selenium\exs.crx")
  
  # driver = webdriver.Chrome(
  #    executable_path="C:\\Users\\RADEON\\Documents\\Web Driver\\chrome Driver\\chromedriver.exe",
  #    chrome_options=options
  # )
  #
  # driver = webdriver.Firefox()
  #
  # driver.get("https://www.runt.com.co/consultaCiudadana/#/consultaVehiculo")
  # assert "Consulta Ciudadano - RUNT" in driver.title
  #
  # wait = WebDriverWait(driver, 2)
  # wait.until(EC.presence_of_element_located((By.ID, "noPlaca")))
  #
  #
  # wait.until(EC.presence_of_element_located((By.ID, "noPlaca")))
  
  
  class Runt:
  
      def __init__(self, placa, nit, time):
          self.placa = placa
          self.nit = nit
          self.options = webdriver.ChromeOptions()
          self.options.add_extension(
              r"C:\Users\RADEON\Documents\Web Driver\cp.crx")
  
          self.driver = webdriver.Chrome(
              chrome_options=self.options)
  
          self.wait = WebDriverWait(self.driver, time)
          self.wait_API = WebDriverWait(self.driver, 150)
  
      def closeBrowser(self):
          self.driver.close()
  
      def run(self):
  
          driver = self.driver
          wait = self.wait
          wait_api = self.wait_API
          driver.get("https://www.runt.com.co/consultaCiudadana/#/consultaVehiculo")
  
          wait.until(EC.presence_of_element_located((By.ID, "noPlaca")))
          placa = driver.find_element_by_id('noPlaca')
          placa.clear()
          placa.send_keys(self.placa)
  
          wait.until(EC.presence_of_element_located((By.NAME, "noDocumento")))
          owner = driver.find_element_by_name('noDocumento')
          owner.clear()
          owner.send_keys(self.nit)
  
          # /html/body/div[1]/div/div[1]/div[2]/div[1]/div[2]/div[7]/div[1]
  
          wait_api.until(EC.presence_of_element_located((
              By.XPATH, "//*[@id='captcha']/div/div[2]/a[1]")))
  
          while (driver.find_element_by_xpath("//*[@id='captcha']/div/div[2]/a[1]").get_attribute("innerText") != "Solved"):
              print("Search Solution....")
          print("solution found...")
  
          if(driver.find_element_by_xpath("//*[@id='captcha']/div/div[2]/a[1]").get_attribute("innerText") == "Solved"):
              driver.find_element_by_xpath(
                  "/html/body/div[1]/div/div[1]/div[2]/div[1]/div[2]/div[1]/div[3]/div[2]/div/div/form/div[8]/button").click()
  
          WebDriverWait(driver, 20).until(EC.element_to_be_clickable(
              (By.CSS_SELECTOR, "div.panel.panel-default&gt;div.panel-heading&gt;h4.panel-title a"))).click()
  
          vigente = driver.find_element_by_xpath(
              "//*[@id='pnlRevisionTecnicoMecanicaNacional']/div/div/div/table/tbody/tr[1]/td[5]")
  
          print(vigente.get_attribute("innerText"))
  
  
  runt2 = Runt("aqd470", 63364079, 2)
  # runt1 = Runt("aqd470", 45884847, 2)
  #
  # thread1 = threading.Thread(target=runt1.run)
  thread2 = threading.Thread(target=runt2.run)
  #
  # thread1.start()
  thread2.start()
  # r'C:\Users\RADEON\Documents\Web Driver\csv.csv'
  </code></pre>
  
  <p>Ignore the threads was doing some tests.</p>
  
  <p>When running this program on the aforementioned web waiting to solve the I am not a robot and send the form, and the code appears that I want to get the information</p>
  
  <p>but the information does not appear in the html until clicking on the following div</p>
  
  <pre><code>&lt;div class="panel-heading" ng-click="togglePanel('pnlRevisionTecnicoMecanicaNacional');
                          consultarDetalle('RevisionTecnicoMecanicaNacional')"&gt;
                          &lt;h4 class="panel-title"&gt;
                              &lt;i class="i_hoja s_25_o1 ib"&gt;&lt;/i&gt;
                              &lt;a&gt; Certificado de revisión técnico mécanica y de gases (RTM)&lt;/a&gt;
                          &lt;/h4&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <p>U can use this example data to enter "AFD329" For Nplaca,"6656954" For Documento</p>
  
  <p>The other fields can be left as default 
  I need to click on that element to load the rest of the query would appreciate a lot if you can help me</p>