title: Click a button that pops up a window
body: <p>URL:
  <a href="https://efun.toronto.ca/torontofun/Activities/ActivitiesCourseDetails.asp?aid=18830&amp;cid=6455687" rel="nofollow noreferrer">https://efun.toronto.ca/torontofun/Activities/ActivitiesCourseDetails.asp?aid=18830&amp;cid=6455687</a></p>
  <p>Clicking the &quot;Add&quot; button generates a pop-up window where you need to enter your credentials. I've tried different ways of clicking the button with Selenium/Python to produce the popup window but nothing seems to works.</p>
  <p>Snippet of my code:</p>
  <pre><code>from selenium import webdriver
  import xpath
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.common.by import By
  
  PATH = &quot;C:\Program Files (x86)\chromedriver.exe&quot;
  
  driver = webdriver.Chrome(PATH)
  
  driver.get('https://efun.toronto.ca/torontofun/Activities/ActivitiesCourseDetails.asp?aid=18830&amp;cid=6455687')
  
  add_buttom_try1 = WebDriverWait(driver,10).until(
      EC.presence_of_element_located((By.CLASS_NAME, &quot;Add&quot;))).click()
  
  add_buttom_try2 = WebDriverWait(driver,10).until(
      EC.presence_of_element_located((By.CLASS_NAME, &quot;ui-state-active ui-corner-all link-button ajax-request from-full-page focus-child need-focus-pageobject&quot;)))
  </code></pre>