title: Click button on JS page -Python
body: <p>My code accesses a page, and I am trying to click on the button that says &quot;Program&quot; on the menu bar (between the words &quot;Abstract&quot; and &quot;Awards&quot;)</p>
  <p>There is a href in the html of the page that would direct me to this new page, however I am not able to click on it using selenium?</p>
  <p>It gives this error - list' object has no attribute 'click'</p>
  <p>here is my code</p>
  <pre><code>import time
  from bs4 import BeautifulSoup
  from selenium import webdriver
  driver = webdriver.Chrome()
  
  driver.get('https://www.kidney.org/spring-clinical/program')
  time.sleep(2)
  page_source = driver.page_source
  soup = BeautifulSoup(page_source, 'html.parser')
  element1 = driver.find_elements_by_xpath('/html/body/div[2]/nav/div/div[1]/div[3]/a')
  element1.click()
  </code></pre>