title: Python Selenium : I want to click a button. Code runs well but button is not yet clicked
body: <p>Code executes properly, but button it is not getting clicked so as to generates a new set of field for further data entry.</p>
  <pre><code>`driver = webdriver.Chrome(chrome_driver, chrome_options=options)
  driver.switch_to.frame(driver.find_element_by_id(&quot;tmscontent&quot;))
  wait = WebDriverWait(driver, 10)
  element = wait.until(EC.element_to_be_clickable((By.ID,'btnaddrow')))
  element.click()
  driver.switch_to.default_content()`
  </code></pre>
  <p>HTML code</p>
  <pre><code>`&lt;input type=&quot;button&quot; name=&quot;btnaddrow&quot; id=&quot;btnaddrow&quot; value=&quot; Add Row &quot; class=&quot;butts&quot; onclick=&quot;addrow(document.getElementById('baserow'))&quot;&gt;`
  </code></pre>