I have a login form, and I want to set input to both inputs, but only the first one is set.
Actually: only one action is executed, others are never executed. If I put btn.click()
on top, no input is filled. What am I missing?
Error:
Uncaught exception: Timed out waiting for Protractor to synchronize with the page after 11 seconds. Please see http://ift.tt/OLBPn9
This is my test:
describe('ADM login page', function () {
beforeEach(function () {
browser.get('http://ift.tt/1ceQmo7');
});
it('login', function () {
var username = element(by.css('div.e2e-adm-username-input input.Input-Holder')),
password = element(by.css('div.e2e-adm-password-input input.Input-Holder'));
username.sendKeys('test');
expect(username.getText()).toBe('test');
password.click();
password.sendKeys(',,test');
expect(password.getText()).toBe(',,test');
element(by.css('div.Login-ActionHolder a.Big-Action')).click();
});
});
Aucun commentaire:
Enregistrer un commentaire