title: Webscraping question in python using Selenium
body: <p>I am trying to scrape using selenium in python.  I want the solar data from this site and section: <a href="https://www.caiso.com/TodaysOutlook/Pages/supply.html#section-renewables-trend" rel="nofollow noreferrer">https://www.caiso.com/TodaysOutlook/Pages/supply.html#section-renewables-trend</a> <a href="https://i.stack.imgur.com/DiR49.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DiR49.jpg" alt="enter image description here" /></a></p>
  <p>I think the problem I'm having is that the <code>Chart data (CSV)</code> menu option does not function as a button so clicking it doesn't work.  This is what I see when I inspect the element before and after clicking it the &quot;Chart data (CSV)&quot; menu option.</p>
  <p>Before: <code>&lt;a class=&quot;dropdown-item mb-0&quot; id=&quot;downloadRenewablesCSV&quot; data-type=&quot;text/csv&quot;&gt;Chart data (CSV)&lt;/a&gt;</code></p>
  <p>After: <code>&lt;a class=&quot;dropdown-item mb-0&quot; id=&quot;downloadRenewablesCSV&quot; data-type=&quot;text/csv&quot; href=&quot;data:text/csv;charset=utf8,Renewables%2007%2F20%2 ...  [alot of encoded data] ...2C209%2C211%2C211%2C211%2C212%2C211%2C211%2C210%0A&quot; download=&quot;CAISO-renewables-20220720.csv&quot;&gt;Chart data (CSV)&lt;/a&gt;</code></p>
  <p>originally I assumed it was just a button element that would download the csv file and was trying to do this:</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  
  driver = webdriver.Chrome(executable_path='PATH')
  driver.get('https://www.caiso.com/TodaysOutlook/Pages/supply.html')
  button = driver.find_element(by='xpath',value='/html/body/div[1]/div[3]/div[8]/div/div/div[2]/nav/div[3]/div/a[1]')
  button.click()
  </code></pre>
  <p>This isn't working.  Any advice? I am very new to selenium sorry.</p>