title: My script produces javascript stuffs Instead of valid links
body: <p>Running my script I get "javascript:getDetail(19978)" such items as href. The number in braces if concatenated with "<a href="https://www.aopa.org/airports/4M3/business/" rel="nofollow noreferrer">https://www.aopa.org/airports/4M3/business/</a>", produces valid links. However, clicking on this newly created links I can see that It gets me to a different page which is not similar to the one if clicked from the original page link. How can I get the original links instead of "javascript:getDetail(19978)". Search should be made writing "All" in the searchbox.
  The code I've tried with:</p>
  
  <pre><code>from selenium import webdriver
  import time
  link = "https://www.aopa.org/airports/4M3/business/"
  driver = webdriver.Chrome()
  driver.get("https://www.aopa.org/learntofly/school/")
  
  driver.find_element_by_id('searchTerm').send_keys('All')
  driver.find_element_by_id('btnSearch').click()
  time.sleep(5)
  for pro in driver.find_elements_by_xpath('//td/a'):
      print(pro.get_attribute("href"))
  driver.quit()
  </code></pre>
  
  <p>Code to create new links with the base url I pasted in my description:</p>
  
  <pre><code>from selenium import webdriver
  import time
  link = "https://www.aopa.org/airports/4M3/business/"
  driver = webdriver.Chrome()
  driver.get("https://www.aopa.org/learntofly/school/")
  driver.find_element_by_id('searchTerm').send_keys('All')
  driver.find_element_by_id('btnSearch').click()
  time.sleep(5)
  for item in driver.find_elements_by_xpath('//td/a'):
      fresh = item.get_attribute("href").replace("javascript:getDetail(","")
      print(link + fresh.replace(")",""))
  driver.quit()
  </code></pre>
  
  <p>However, this newly created links lead me to different destinations.</p>
  
  <p>FYC, original links are embedded within elements like the below one:</p>
  
  <pre><code>&lt;td&gt;&lt;a href="javascript:getDetail(19978)"&gt;GOLD DUST FLYING SERVICE, INC.&lt;/a&gt;&lt;/td&gt;
  </code></pre>