0
我有一个量角器测试,需要登录后某个面板不存在。我的代码在下面,但每次执行时,量角器都会挂起,然后再失败。检查量角器中是否存在元素
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
it('The team overlay page should not be present when another user logs in.', function() {
loginPage.login(user.username, user.password);
expect(element(by.css('div.panel#myPanel')).isPresent()).toBe(false);
});
我也使用.Count中()尝试,但它也做了同样的事情。与上面相同的错误。
expect(element.all(by.css('div.panel#myPanel')).count()).toBe(0);
谢谢。当它应该存在并且它没有任何问题时,我测试了它。 :)我会先尝试你的解决方案。 – jaydoe