title: Getting the name of file download using selenium in python
body: <p>So I'm downloading a file using Selenium and it works fine but I need to get the name of the file. </p>
  
  <p>My variable <code>path</code> should get the name of what was downloaded but all it prints out is "none". </p>
  
  <pre><code>driver = webdriver.Firefox(firefox_profile=profile, firefox_binary=Binary)
  driver.get("stuff")
  time.sleep(2)
  path = driver.find_element_by_xpath("//a[contains(text(), 'tgz')]").click()
  print path
  </code></pre>