title: Use login credentials that depends on the URL
body: <p>I have a function created that takes several arguments including:</p>
  
  <blockquote>
    <p>url<br>
    username<br>
    password<br>
    downloaded_filename<br>
    new_filename_name  </p>
  </blockquote>
  
  <p>example code:</p>
  
  <pre><code>def reports(url, usr, pass, downloaded_filename, new_filename_name):
      driver = webdriver.Chrome('location of webdriver')
      driver get(url)
      usernamebox = driver.find_element_by_name('username')
      userbox.send_keys(username)
      ....
  </code></pre>
  
  <p>I use this to log in to several sites and download reports.</p>
  
  <p>But I defined all the above variables to specific names. Is there a way that I can assign this variables to a function so that it is only needed the function name for the variables to be updated? Is there a better way of doing this?</p>