代码看起来像这样:
<span ng-switch-when="boolGroup" class="ng-scope">
<label class="col-sm-6 control-label">
Available tabs:
</label>
<span ng-repeat="key in detail.keys" class="something ng-scope">
<input type="checkbox" id="TAB_1" style="display: none;" class="ng-valid ng-dirty">
<label ng_class="something something..." for="TAB_1" class="ng-binding auth-selected-editable">
Example
</label>
</span> ... </span>
我需要选择标签:“示例”,它是复选框类型,但不显示复选框。所以基本上它显示为选择框,但在HTML代码中它是复选框。
Capybara说:Unable to find checkbox "Tab_1" <Capybara::ElementNotFound>