Add a hook to allow subclasses to specify a firefox profile.

On a couple occasions I've wanted to pass a different profile when starting the Firefox browser. I believe this hook can help with that.

If you think it's a good idea, let me know and I'll make sure to include the docs and whatever else is needed in the request.
Thanks!

----------------------------------------------------------------------------------
Father, dabbling at being a Python developer specializing in Django,
Cyclist, and home brewer.

On Fri, Oct 31, 2014 at 10:31 AM, jmbowman <notifications@github.com> wrote:

> In sbo_selenium/testcase.py:
>
> > @@ -249,7 +252,11 @@ def setUp(self):
> >          if os.getenv('SELENIUM_HOST'):
> >              self.sel = self.sauce_labs_driver()
> >          elif self.browser == 'firefox':
> > -            self.sel = Firefox()
> > +            firefox_profile = self.get_firefox_profile()
> > +            if firefox_profile:
> > +                self.sel = Firefox(firefox_profile)
> > +            else:
> > +                self.sel = Firefox()
>
> This could be simplified to just "self.sel =
> Firefox(self.get_firefox_profile())"; None is the default value for
> firefox_profile in the constructor anyway.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/safarijv/sbo-selenium/pull/4/files#r19673228>.
>