2016-02-01 25 views
2

如何在量角器測試中識別詠歎調隱藏屬性是否爲真。我想用它的地方在這裏。如何編寫隱藏在詠歎調中的量角器測試

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

在此先感謝。

+1

你可以更新你嘗試過的代碼和你有任何錯誤消息你的問題?謝謝 –

回答

3

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

相關問題