2016-02-01 26 views
2

如何在量角器测试中识别咏叹调隐藏属性是否为真。我想用它的地方在这里。如何编写隐藏在咏叹调中的量角器测试

<html> 
    <span aria-hidden="true"></span> 
</html> 

在此先感谢。

+1

你可以更新你尝试过的代码和你有任何错误消息你的问题?谢谢 –

回答

3

你可以使用 expect(element(by.css('span')).getAttribute('aria-hidden')).toBeTruthy()

相关问题