lib/localbrowsers.js
function(browser, data) {
        // Some browsers are platform specific so exit out if not available
        if(data[browser][process.platform]) {
            if(browser.indexOf("firefox") !== -1) {
                // Handles firefox, firefox aurora and firefox nightly
                cleanLaunchFirefox(browser, data);
            } else if(browser.indexOf("chrome") !== -1) {
                // Handles chrome and chrome canary
                cleanLaunchChrome(browser, data);
            } else if(browser.indexOf("opera") !== -1) {
                // Handles opera and opera next
                cleanLaunchOpera(browser, data);
            } else if(browser.indexOf("phantomjs") !== -1) {
                // Handles opera and opera next
                cleanLaunchPhantomjs(browser, data);
            }  else {
                // Safari don't require special treatment
                data[browser].process = exec(data[browser][process.platform] + " " + url);
            }
        }
    }
function(browser, data) {
        // Some browsers are platform specific so exit out if not available
        if(data[browser][process.platform]) {
            if(browser.indexOf("firefox") !== -1) {
                // Handles firefox, firefox aurora and firefox nightly
                cleanLaunchFirefox(browser, data);
            } else if(browser.indexOf("chrome") !== -1) {
                // Handles chrome and chrome canary
                cleanLaunchChrome(browser, data);
            } else if(browser.indexOf("opera") !== -1) {
                // Handles opera and opera next
                cleanLaunchOpera(browser, data);
            } else if(browser.indexOf("phantomjs") !== -1) {
                // Handles opera and opera next
                cleanLaunchPhantomjs(browser, data);
            }  else {
                // Safari don't require special treatment
                data[browser].process = exec(data[browser][process.platform] + " " + url);
            }
        }
    }
function ( browser , data ) { // Some browsers are platform specific so exit out if not available if ( data [ browser ] [ process . platform ] ) { if ( browser . indexOf ( "firefox" ) !== - 1 ) { // Handles firefox, firefox aurora and firefox nightly cleanLaunchFirefox ( browser , data ) ; } else if ( browser . indexOf ( "chrome" ) !== - 1 ) { // Handles chrome and chrome canary cleanLaunchChrome ( browser , data ) ; } else if ( browser . indexOf ( "opera" ) !== - 1 ) { // Handles opera and opera next cleanLaunchOpera ( browser , data ) ; } else if ( browser . indexOf ( "phantomjs" ) !== - 1 ) { // Handles opera and opera next cleanLaunchPhantomjs ( browser , data ) ; } else { // Safari don't require special treatment data [ browser ] . process = exec ( data [ browser ] [ process . platform ] + " " + url ) ; } } }
In order to get browsers to launch without error we need to pass specific flags to some of them
In order to get browsers to launch without error we need to pass specific flags to some of them