title: Find the elements dynamically in header and click on them to verify in python selenium
body: <p>This is my code </p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.by import By
  
  class Runfftest():
      def test(self):
          """
          Inistitate the ff browser
          launch the browser
          :return:
          """
          baseUrl = "https://letskodeit.teachable.com/p/practice"
          driver = webdriver.Firefox(executable_path="/usr/local/bin/geckodriver")
          driver.maximize_window()
          driver.get(baseUrl)
          driver.implicitly_wait(10)
  
          header_by_xpath = driver.find_element_by_xpath("//*[@id='navbar']")
          links_in_header = header_by_xpath.find_elements(By.TAG_NAME,"a")
          size_of_links = len(links_in_header)
          print(size_of_links)
  
          for linkinheader in links_in_header:
              linkinheader.click()
  
  
  ff = Runfftest()
  ff.test()
  </code></pre>
  
  <p>I am able to find a element and also click on it but when I do, it throws an error.</p>