title: "TypeError: get_screenshot_as_file() takes exactly 2 arguments (1 given)" when using Selenium to take screenshots
body: <p>I'm trying to use Selenium webdriver to take a screenshot of a given link but I am met with the following error</p>
  
  <pre><code>browser.get_screenshot_as_file()
  TypeError: get_screenshot_as_file() takes exactly 2 arguments (1 given)
  </code></pre>
  
  <p>The block of code I am using is</p>
  
  <pre><code>link = comment.permalink
  browser = webdriver.Firefox()
  browser.get(link)
  browser.get_screenshot_as_file()
  browser.quit()
  </code></pre>