Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

start minimized browser instance with Karma

Tags:

karma-runner

Everytime I start karma with for testing, a new instance of browser is opened (Firefox in my case). This is annoying because it pops out over the other windows (I am using windows 8).

Is there any karma configuration to make it start minimized? Or maybe another solution which would solve my problem.

like image 565
csg Avatar asked Feb 23 '14 12:02

csg


1 Answers

The best I've found for Chrome is to set the window-size. It still maximizes but at least you can quickly hit the Restore button to resize it to a small window. I couldn't find an option to not open maximized http://peter.sh/experiments/chromium-command-line-switches/

Here's the Karma config:

browsers: ['Chrome_small'],

customLaunchers: {
  Chrome_small: {
    base: 'Chrome',
    flags: ['--window-size=400,400']
  }
}
like image 60
Jeff Sheets Avatar answered Oct 05 '22 05:10

Jeff Sheets