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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -