【发布时间】:2019-08-14 06:07:57
【问题描述】:
我下面的测试总是失败,因为量角器无法通过标签名称找到元素。
it('should show test component',async () => {
await browser.get('/trade')
element(by.tagName(('test-component'))).isPresent()
.then(value=>{
console.log(value ,'first')
expect(value).toBeTruthy()
});
})
我在其他测试规范中尝试过相同的代码,但它确实有效。我在这里做错了什么?
【问题讨论】:
-
@Mokkasoru 已关闭?
-
@Mokkasoru 这里的代码在语法上是正确的。我不确定您的评论指的是什么。
标签: angular asp.net-mvc jasmine protractor angular-e2e