title: Is there a way to pass an instance of a Selenium Webdriver profile into several functions with Python
body: <p>I am trying to write a script that will be able to handle several possibilities based on the input csv file. It will determine which webpages to visit, and what content to create/upload. I am using Selenium Webdriver with Python. </p>
  
  <p>I would like to have it set up so that each function is in a separate file called by the parent file. </p>
  
  <p>Is there a way to create a firefox profile, then pass that profile into a function to log in. Then pass that same profile into a different function to upload specific content. I would like it to be able to pass the profile to however many functions are needed without needing to create a new profile for each uploading instance?</p>
  
  <p>Right now I have it set up as a single function that just has all possibilities written in it. I would much prefer to simplify it into separate functions that are only called as needed. </p>
  
  <p>Is this possible? and if so how?</p>
  
  <p>I am using Python 2.7</p>
  
  <p>Thank you</p>