当我像这样使用fill_in时,我正在C#应用程序中使用Capybara和RSpec(用于响应...)进行自动化测试
用'用户名123'填写'Nombre del cliente'
控制台说
失败/错误:fill_in'Nombre del cliente',带有:“ 1365”
Capybara::ElementNotFound:
Unable to find field "Nombre del cliente" that is not disabled
选择器的完整HTML是:
<div class="col-md-2">
<label>Cliente:</label>
<input type="text" ng-model="clienteSeleccionado" placeholder="Nombre del cliente" class="form-control ng-pristine ng-valid ng-empty ng-touched" uib-typeahead="cliente as cliente.Nombre for cliente in clientesFiltrados($viewValue)" typeahead-loading="cargandoClientes" typeahead-no-results="noResults" typeahead-on-select="clienteTypeaheaad($item, $model, $label, $event)" typeahead-min-length="3" aria-autocomplete="list" aria-expanded="false" aria-owns="typeahead-5-6227"><ul class="dropdown-menu ng-isolate-scope ng-hide" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+'px', left: position().left+'px'}" role="listbox" aria-hidden="true" uib-typeahead-popup="" id="typeahead-5-6227" matches="matches" active="activeIdx" select="select(activeIdx, evt)" move-in-progress="moveInProgress" query="query" position="position" assign-is-open="assignIsOpen(isOpen)" debounce="debounceUpdate">
<!-- ngRepeat: match in matches track by $index -->
</ul>
<i ng-show="cargandoClientes" class="fa fa-refresh ng-hide"></i>
<div ng-show="noResults" class="ng-hide">
<i class="fa fa-remove"></i> Cliente no encontrado
</div>
<i class="fa fa-remove ng-hide" ng-show="clienteSeleccionado" ng-click="clienteS
eleccionado = null; getPage()"></i>
</div>
我尝试了不同的事情。任何想法? 谢谢