0
我有一个登录表单,并且我想为两个输入设置输入,但测试不会在Chrome浏览器,Safari浏览器中进行,但使用Firefox有用。超时等待量角器在11秒后与页面同步 - 量角器
最初我有一个$ http请求,它已完成,并且据我所知,量角器在$ http完成时继续,所以这不应该是问题,还是它?
错误:
Uncaught exception: Timed out waiting for Protractor to synchronise with the page after 11 seconds. Please see https://github.com/angular/protractor/blob/master/docs/faq.md
这是我的测试:
describe('ADM login page', function() {
\t beforeEach(function() {
\t \t browser.get('http://127.0.0.1:8383/v2');
\t });
\t it('login', function() {
\t \t var username = element(by.css('div.e2e-adm-username-input input.Input-Holder')),
\t \t \t password = element(by.css('div.e2e-adm-password-input input.Input-Holder'));
\t \t username.sendKeys('test');
\t \t expect(username.getText()).toBe('test');
\t \t password.click();
\t \t password.sendKeys(',,test');
\t \t expect(password.getText()).toBe(',,test');
\t \t element(by.css('div.Login-ActionHolder a.Big-Action')).click();
\t });
});