title: Selenium Python 3.4.3 Automatic Torrenting: Link section
body: <p>What i am trying to do is make a simple program that lets me run and it basically goes to Torrentz and follows a few link to finally be able to download the file through uttorent. Below is what i have coded so far and i cant seem to make the variable <code>linkElem</code> work. And i also cant seem to make <code>linkElem.find_elements_by_xpath</code> go to the link necessary. If you think you know what is wrong, please do help. 
  Thanks.</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  
  
  browser = webdriver.Firefox()
  browser.get('https://torrentz.eu/')
  
  searchElem = browser.find_element_by_id('thesearchbox')
  searchElem.send_keys('Limitless')
  searchButton = browser.find_element_by_id('thesearchbutton')
  searchButton.click()
  
  linkElem = linkElem.find_elements_by_xpath("//div[@class='results']//a[@href='/9ea0c575520a3065d85b285c9474231192368db7']")
  
  
  #wait = WebDriverWait(browser, 6)
  #linkElem = wait.until(EC.visibility_of_element_located((By.href, "/9ea0c575520a3065d85b285c9474231192368db7")))
  #linkElem.clear()
  
  #linkElem = browser.find_element_by_link_text('S01E20 HDTV x264 LOL ettv')
  #linkElem.click()
  
  
  #SignIn = browser.find_elements_by_id('signIn')
  #SignIn.click()
  #passwordElem.submit()
  </code></pre>