2
如何在量角器測試中識別詠歎調隱藏屬性是否爲真。我想用它的地方在這裏。如何編寫隱藏在詠歎調中的量角器測試
<html>
<span aria-hidden="true"></span>
</html>
在此先感謝。
如何在量角器測試中識別詠歎調隱藏屬性是否爲真。我想用它的地方在這裏。如何編寫隱藏在詠歎調中的量角器測試
<html>
<span aria-hidden="true"></span>
</html>
在此先感謝。
你可以使用 expect(element(by.css('span')).getAttribute('aria-hidden')).toBeTruthy()
你可以更新你嘗試過的代碼和你有任何錯誤消息你的問題?謝謝 –