When running my test I receive the error:
browser.setlocation is not a function.
The protractor website lists browser.setLocation() as a function, why does it not recognize my use of it?
I have tried multiple variations of accessing a url i.e. window.location... but to no avail.
it('login', function() {
browser.setLocation('http://localhost')
.waitForElementVisible('wrap')
.setValue("#username", "username1")
.setValue("#password", "Password2");
element(by.id('loginBtn')).click();
browser.waitForAngular();
});
Test should go to login page, enter username and password and click login
window.location.href? If that doesn't work try waiting for angular first, as would be suggested by stackoverflow.com/a/36441352/10965456. - ecc521