-
-
Save alecxe/5d6763c1e55a8a4c5747 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var q = require('q'); | |
var FirefoxProfile = require('firefox-profile'); | |
exports.getFirefoxProfile = function () { | |
var deferred = q.defer(); | |
var firefoxProfile = new FirefoxProfile(); | |
firefoxProfile.setPreference("javascript.enabled", false); | |
firefoxProfile.encoded(function (encodedProfile) { | |
var capabilities = { | |
'browserName': 'firefox', | |
'firefox_profile': encodedProfile, | |
'specs': [ | |
'*.spec.js' | |
] | |
}; | |
deferred.resolve(capabilities); | |
}); | |
return deferred.promise; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment