[browsershots-factories] Re: OS X multiple firefox versions
Martijn Frazer
martijn at frazermail.nl
Tue Apr 1 15:40:40 CEST 2008
> Hello, I run 2 Firefox versions on MacOS 10.4, here is my trick :
>
> In shotfactory/shotfactory.py I've added these 2 last lines in the
> 'browsershot' function :
>
> def browsershot(options, server, config, password):
> """
> Process a screenshot request and upload the resulting PNG file.
> """
> browser_module = config['browser'].lower().replace('-', '_')
> if browser_module == 'internet explorer':
> browser_module = 'msie'
> > if browser_module == 'firefox' and config['major'] == 3 :
> > browser_module = 'firefox3'
>
>
>
> In shotfactory/shotfactory04/gui/darwin/ I made a copy of firefox.py
> and named it firefox3.py, I just changed one little thing in
> start_browser function :
>
> binary = '/Applications/Firefox3.app/Contents/MacOS/firefox'
>
>
> I made about the same to run Safari 2 also.
Thank you very much, Etienne! I was wondering about this and will try
it soon.
> I noticed Safari don't wake my iMac's screen from sleep, I got this
> problem with Firefox only. So I run Safaris alones at night.
This is also a very useful trick. Maybe it's a good idea to pass it to
the Mozilla development team?
Thanks,
Martijn
More information about the browsershots-factories
mailing list