标签: html protractor
如何在量角器测试中识别aria-hidden属性是否为true。我想要使用它的地方就在这里。
<html> <span aria-hidden="true"></span> </html>
提前致谢。
答案 0 :(得分:3)
你可以使用 expect(element(by.css('span')).getAttribute('aria-hidden')).toBeTruthy()
expect(element(by.css('span')).getAttribute('aria-hidden')).toBeTruthy()