title: Python Selenium - Identifying and Clicking Angular Elements
body: <p>Utilizing Python and Selenium, I am attempting to click on the 'Matrix' and 'Transaction Desk' Angular buttons on a specific webpage (see screenshot). I have looked into this for hours now and have not found anything that has worked. It actually seems like there are a lot of unsolved questions still out there around this topic. The source code (see screenshot) does not appear to be within any iframe. The traceback just tells me that it could not find the specific code and times out.</p>
  <p>My code:</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
  
  driver = webdriver.Chrome(&quot;C:\\Users\\Matt\\Documents\\WebDriver\\chromedriver_win32\\chromedriver.exe&quot;)
  
  driver.get(&quot;https://www.stellarmls.com/&quot;)
  
  #Password authentication HERE, so you will be unable to access this site yourself.
  
  driver.maximize_window()
  WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, '//*[@id=&quot;collapse911&quot;]/app-links-panel-body/div/div/div[1]'))).click()
  
  print(driver.page_source)
  </code></pre>
  <p>Traceback:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\Matt\Documents\Splitt\ROI Property Finder.py&quot;, line 53, in &lt;module&gt;
      WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, '//*[@id=&quot;collapse911&quot;]/app-links-panel-body/div/div/div[1]'))).click()
    File &quot;C:\Users\Matt\Python3.9\lib\site-packages\selenium\webdriver\support\wait.py&quot;, line 80, in until
      raise TimeoutException(message, screen, stacktrace)
  selenium.common.exceptions.TimeoutException: Message: 
  </code></pre>
  <p>Supplementary screenshots:</p>
  <p><a href="https://i.stack.imgur.com/AUyVD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AUyVD.png" alt="enter image description here" /></a></p>
  <p>iframe:</p>
  <p><a href="https://i.stack.imgur.com/my5Zp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/my5Zp.png" alt="" /></a></p>