【发布时间】:2016-08-01 12:57:21
【问题描述】:
我需要使用 expect 和 Jasmine 检查按钮中 span 的文本是否为“Vigente”。我该怎么做?
<button _ngcontent-hke-28="" class="btn btn-success disabled" tabindex="-1">
<span _ngcontent-hke-28="" class="glyphicon glyphicon-check">
</span> Vigente</button>
我可以像这样使用 xpath:
/html/body/application/auth-container/layout/div/main-content/div/norma-cadastro/div/form/div[8]/div/button/text(Vigente)
【问题讨论】:
标签: javascript angularjs jasmine protractor