【发布时间】:2019-05-23 11:00:48
【问题描述】:
我要验证特定 css 值的文本。
HTML 是 -
<table class="resp_card_table company-dashboard">
<thead>...</thead>
<tbody>
<tr ng-repeat="company in company | filter:searchString" class="ng-scope">
<td data-label="Company Name" class="ng-binding">ABC Constructions</td>
</tr>
</tbody>
</table>
我要验证“公司名称”是否包含文本“ABC Constructions”
如何使用 expect 语句做到这一点?
【问题讨论】:
标签: ruby selenium rspec capybara