code: def profile(self, new_profile):
          
          if not isinstance(new_profile, FirefoxProfile):
              new_profile = FirefoxProfile(new_profile)
          self._profile = new_profile
docs: Sets location of the browser profile to use, either by string
          or ``FirefoxProfile``.