angularjs - How to set modify header in Firefox while writing protractor test for Angular JS? -


i have been able find juliemr's code creating firefox profile, follows:

var q = require('q'); var firefoxprofile = require('firefox-profile');  exports.getfirefoxprofile = function() {   var deferred = q.defer();    var firefoxprofile = new firefoxprofile();     firefoxprofile.setpreference('browser.newtab.url',      'https://www.angularjs.org');     firefoxprofile.encoded(function(encodedprofile) {      var multicapabilities = [{       browsername: 'firefox',       firefox_profile : encodedprofile     }];     deferred.resolve(multicapabilities);   });  return deferred.promise; }; 

however, i'm not able figure out how modify headers.


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -