Hello,
Just getting started with protractor and trying to
fill in the basic http authentication window with
user name and password from protractor code.
var util = require('util');
require('protractor/jasminewd');
describe("Index page", function() {
var ptor;
beforeEach(function() {
ptor = protractor.getInstance();
ptor.get('#/'); // this brings up the basic auth box, need to enter use name and password
});
it("should do something", function() {
ptor = protractor.getInstance();
expect(ptor.getCurrentUrl()).toContain('#/');
});
});
How do I fill in the basic auth dialog box?
Thanks a lot in advance!
SA